Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

coderov's avatar

Completely turn of laravel error handing to see default php errors.

Hello.

I have horror to join project with badly architect structure. Default developing ideas not using there most places.

Not so bad, but now its started to public and simple bugs crashes the system.

One thing takes most time: cannot see line with native php include directive. It gives exception without line number:

{ "message": "Method Illuminate\View\View::__toString() must not throw an exception, caught ErrorException: Undefined offset: 7 (View: /....../table.blade.php)", "exception": "Symfony\Component\Debug\Exception\FatalErrorException", "file": "/mnt/D/laragon/www/..../widget.php", "line": 0, "trace": [] }

( /..../ ) just for confidence;

And seems I am a only one in the world who need to Completely turn of error handing to see native php errors.

0 likes
2 replies
jlrdw's avatar

What does the server logs show.

coderov's avatar

I fixed it. Log show exact error without line number. Simply "7" key was not exists.

But question is how to "Completely turn of laravel error handling to see default php errors." And seems I'm only one in the world who looking for this.

Script was included without thinking MVC architecture, with Why its not possible to turn of error handler?

Please or to participate in this conversation.