Skip to main content

How to Enable Error logs - Laravel

This article explains how to enable and locate error logs in Laravel-based applications.

Updated over 3 weeks ago

⚠️ Always disable debug mode after troubleshooting is complete.

Prerequisites

  • Access to cPanel

  • Ensure PHP error logging is enabled in cPanel

Completion of the task: 10 minutes

Expertise: beginner

How to do?

  1. Open File Manager or connect via FTP

  2. Edit the .env file

  3. Set the following line:

    APP_DEBUG=true
  4. Save the file.

Log File Location

/storage/logs/laravel.log

Disable Debug Mode

After troubleshooting

APP_DEBUG=false
Did this answer your question?