blade icon indicating copy to clipboard operation
blade copied to clipboard

Locating parse error

Open kyobul opened this issue 9 years ago • 1 comments

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 ?

kyobul avatar Sep 17 '16 10:09 kyobul

use Jenssegers\Blade\Blade;

$blade = new Blade('views', 'cache'); echo $blade->render( .... );

or echo $blade->make('homepage', ['name' => 'John Doe'])->render();

visavi avatar Jan 10 '17 16:01 visavi