diff --git a/src/Illuminate/Foundation/helpers.php b/src/Illuminate/Foundation/helpers.php index dc70b4e687f0..3bc76f17b1dc 100644 --- a/src/Illuminate/Foundation/helpers.php +++ b/src/Illuminate/Foundation/helpers.php @@ -346,7 +346,7 @@ function elixir($file, $buildDirectory = 'build') } if (isset($manifest[$file])) { - return '/'.$buildDirectory.'/'.$manifest[$file]; + return '/'.trim($buildDirectory.'/'.$manifest[$file], '/'); } throw new InvalidArgumentException("File {$file} not defined in asset manifest.");