diff --git a/src/Illuminate/View/Compilers/BladeCompiler.php b/src/Illuminate/View/Compilers/BladeCompiler.php index 11809f655659..676176b94652 100644 --- a/src/Illuminate/View/Compilers/BladeCompiler.php +++ b/src/Illuminate/View/Compilers/BladeCompiler.php @@ -43,7 +43,7 @@ class BladeCompiler extends Compiler implements CompilerInterface { */ public function compile($path) { - $contents = $this->compileString($this->files->get($path)); + $contents = trim($this->compileString($this->files->get($path))); if ( ! is_null($this->cachePath)) {