Answer the question
In order to leave comments, you need to log in
How to find the cause of an exception in Laravel?
Hello.
The project has a certain entity that the admin can change (create/edit/delete). There is a bug: we are logged in and are on the edit page, in case of logging out in another tab and clicking on the "Save" button on the first tab, our browser returns a 404 error (it does not transfer to the 404 page itself, the error is simply in the console). During debugging, an exception was found (file /vendor/laravel/framework/src/Illuminate/Foundation/Application.php, handle method). That is, when we are logged in and trying to save, everything is OK, but if we are not logged in, we get into the catch block.
The problem is that I can't find where the exception occurred in the try block. I go inside stacks and don't find a place with throw new Exception or something similar. In debugging, I'm not strong yet, so maybe there are some ways to determine the location of the exception. IDE - PhpStorm.
Or someone just met with such a problem and knows the cause of the occurrence - I will be grateful for the help.
Answer the question
In order to leave comments, you need to log in
Doesn't the built-in debugger work?
the call stack, as well as the code itself where the error was thrown, what else is needed? O_O
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question