StudyBuddy

How do I enable debugging on Laravel?

If you are facing any issues or showing a blank page or 500 internal server error you may set the app debug true to see the actual error messages.

To enable debugging in a Laravel application, you need to set the APP_DEBUG environment variable to true in your .env file. Here are the steps:

  1. Open the .env file in the root directory of your Laravel project.
  2. Find the line that starts with APP_DEBUG.
  3. Set this line to APP_DEBUG=true.
  4. Save the file.

Now, detailed error messages should be displayed when something goes wrong in your application.

Set it back to false after testing.