Error handling in Laravel
Error handling in Laravel By default, Laravel logs errors and exceptions in the App\Exception\Handler.php class. By default, debug mode is set to false and this value in .env file can be changed to true for local debugging. Set this value to false, in production environment as setting it to true, there is risk of sharing sensitive production information with the end users. The log information can be configured in the config/app.php. Laravel uses monolog PHP logging library Logging parameters: single, daily, syslog and errorlog log => env('APP_LOG', 'daily'); Max. number of log files can be configured 'log_max_files' => 25; Severity levels: error, critical, alert and emergency messages log_level => env('APP_LOG_LEVEL', 'error')