From be951a41ee12f5c3b1a86b3f6b0c810d6986f6e3 Mon Sep 17 00:00:00 2001 From: Dionysis Arvanitis Date: Mon, 23 May 2016 21:29:43 +0300 Subject: [PATCH] [5.2] Allow buildDirectory to be set as empty. --- src/Illuminate/Foundation/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.");