Index: vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php (revision ) +++ vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php (revision ) @@ -119,6 +119,15 @@ if (! is_null($this->cachePath)) { $contents = $this->compileString($this->files->get($this->getPath())); + if (env('DEBUG_BLADE')) { + $p = e(str_replace(resource_path('views'), '', $this->getPath())); + $p = trim($p, '/'); + $p = str_replace('.blade.php', '', $p); + $p = str_replace('.php', '', $p); + $p = str_replace('/', '.', $p); + $contents = "\n\n" . trim($contents) . "\n\n"; + } + $this->files->put($this->getCompiledPath($this->getPath()), $contents); } }