Laravel 5.6 Upgrade caused Logging to break Laravel 5.6 Upgrade caused Logging to break php php

Laravel 5.6 Upgrade caused Logging to break


Add this file to your config folderhttps://github.com/laravel/laravel/blob/develop/config/logging.php

and add this to your .env file LOG_CHANNEL=stack


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 :)


I got the same problem and tried to do everything as you did but not work.

Finally, I've found that it was because of cached config, just clear it and everything will be fine:

php artisan config:clear