My code in on production and I ran
php artisan config:clear
After that, my code was not running. The index pages and all other pages went
I had similar issues when I ran php artisan config:cache
. Apparently, it is an issue when the application is trying to load cached configuration files that have closures in it. It won't be fixed in Laravel since it is a bad practice to have closures in config files. Refer this Github issue
The way I solved this is by undo-ing this.
Delete the cache for config.
It is located in here
bootstrap/cache/config.php
OR
vendor/config.php