How to display errors on laravel 4?

@Matanya – have you looked at your server logs to see WHAT the error 500 actually is? It could be any number of things

@Aladin – white screen of death (WSOD) can be diagnosed in three ways with Laravel 4.

Option 1: Go to your Laravel logs (app/storage/logs) and see if the error is contained in there.

Option 2: Go to you PHP server logs, and look for the PHP error that is causing the WSOD

Option 3: Good old debugging skills – add a die(‘hello’) command at the start of your routes file – then keep moving it deeper and deeper into your application until you no longer see the ‘hello’ message. Using this you will be able to narrow down the line that is causing your WSOD and fix the problem.

Leave a Comment