These days I'm moving an old PHP project to Laravel framework and I'm struggling with these white pages that come up every hour. Back when I used Asp.net I never saw such a blank pages. But now in PHP and Laravel I always see white pages and I should solve the problem with guessing where the issue may be or not. No matter what I do. "Display errors" is on. "Display startup errors" is on. Storage/laravel.log has nothing helpful.
Asked
Active
Viewed 130 times
2 Answers
1
Open the .env file in the root of your Laravel project and change APP_DEBUG=false
to APP_DEBUG=true

Holo
- 579
- 10
- 26
-
It's true already – Vahid2023 Apr 06 '20 at 09:00
1
check APP_ENV to be local not production
read Laravel's Logging documentation
install a debugger extension: Xdebug is fine
if you are using feature tests consider adding $this->withoutExceptionHandling(); to disable Laravel's exeption handling wich may lead to redirecting,...
if youre still unable to see error page it may be a php matter. check this answer

Shalior
- 418
- 5
- 9