Debugging HTTP Error 500 in Laravel

How can I see what's wrong when I have an HTTP error 500?

You have to change the value of APP_DEBUG= in the /.env file to true like this:

APP_DEBUG=true​

... to see what's wrong with your server or with the code.