Laravel 5.6 Upgrade caused Logging to break

I was facing the same issue due to upgrade of my laravel version from 5.3 to 5.7. But after search of few mints i found the solution. You just need to follow the following steps.

  1. create logging.php file inside the config folder.
  2. Copy code from this Official Link of Laravel.
  3. Past this code into your logging.php file.
  4. run this command -- php artisan config:clear

All done. Happy Coding :)


Add this file to your config folder https://github.com/laravel/laravel/blob/5.6/config/logging.php

and add this to your .env file LOG_CHANNEL=stack

Don't forget to run php artisan config:clear command afterwards.