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

viedev's avatar

Laravel 5.2 APP_DEBUG=false causes failed form request validation to 500 error

I have a 5.2 app that whenever form request validation fails, if the app_debug=false, it spits out the 500 error page instead of just returning the validation as usual.

Even weirder, it logs nothing in the laravel logs or the apache error logs. If I set app_debug=true then it works as it should. Seriously stumped on this one.

0 likes
1 reply
viedev's avatar
viedev
OP
Best Answer
Level 6

Solved it. Another dev had modified our error handler prior to updating to 5.2, so it was checking for a 500 error blade template to render if app_debug=false. I just checked the 5.2 default error handler render function (App/Exceptions/Handler.php > render function) and modified ours to be similar.

1 like

Please or to participate in this conversation.