diff --git a/laravel/bundle.php b/laravel/bundle.php index ea057475..1ef4d8c0 100644 --- a/laravel/bundle.php +++ b/laravel/bundle.php @@ -461,4 +461,16 @@ public static function names() return array_keys(static::$bundles); } + /** + * Expand given bundle path of form "[bundle::]path/...". + * + * @param string $path + * @return string + */ + public static function expand($path) + { + list($bundle, $element) = static::parse($path); + return static::path($bundle).$element; + } + } \ No newline at end of file