Logging and reading error logs

When a PHP application shows a generic "Server Error", the real message is in the log. In Laravel it is storage/logs/laravel.log.

Open the file and scroll to the bottom. Look for the line starting with the date and ERROR, then the first lines of the stack trace below it. The message usually says exactly what is wrong: a missing table, a permission problem, a wrong password.

When you contact support, paste those lines. It saves a round of questions and gets you a fix faster.

0 comments

Leave a comment

Not shown publicly.
Chat with us
Hi! Send us a message and we will reply here as soon as we can.