How to debug Laravel error 500 with no logs, no information

Next to looking into your .env file, make sure permissions are correctly set (and good practice to create the storage/logs folder(s) manually - at least on windows that causes problems).


Some PHP exceptions are not possible to catch, so Laravel cant handle them. For example syntax errors, or maximum memory limit errors.

The following error types cannot be handled with a user defined function: E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR, E_COMPILE_WARNING, and most of E_STRICT raised in the file where set_error_handler() is called.

Ref.: http://php.net/manual/en/function.set-error-handler.php


I had simiar issue (saw error 500, but logs were present).

In order to be able to see errors directly on the page, I did following changes:

  1. enable debug mode: APP_DEBUG=true
  2. reload configuration: php artisan config:cache