blade
blade copied to clipboard
Locating parse error
When an error is encountered in the .blade.php file the following output is thrown :
Fatal error: Method Illuminate\View\View::__toString() must not throw an exception, caught ErrorException: ... in C:\htdocs\project\file.php on line 0
It always points to line 0. Any way to get the line in the blade.php where the error occurs ?
use Jenssegers\Blade\Blade;
$blade = new Blade('views', 'cache'); echo $blade->render( .... );
or echo $blade->make('homepage', ['name' => 'John Doe'])->render();