Skip to content

Commit

Permalink
[5.2] Allow buildDirectory to be set as empty. (#13661)
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysiosarvanitis authored and taylorotwell committed May 24, 2016
1 parent ef770ed commit d954790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit d954790

Please sign in to comment.