Practice
When starting a Laravel application
error
PHP Fatal error: Uncaught ReflectionException: Class config does not exist in /home/vagrant/engltr/vendor/laravel/framework/src/Illuminate/Container/Container.php:738
Stack trace:
#0 /home/vagrant/engltr/vendor/laravel/framework/src/Illuminate/Container/Container.php(738): ReflectionClass->__construct('config')
possible causes
1) remove this code from bootstrap/app.php :
2) one of the providers being used is not enabled
/config/app.php add the provider
3) try reconfiguring or clearing the caches
php composer.phar dump-autoload
clearing caches
php artisan config: cache
php artisan cache: clear
4) check the write permissions of the /bootstrap/cache/ folder (777 or 775 or 755)
sudo chmod 775 storage -R
sudo chmod 775 vendor -R
sudo chmod 775 bootstrap -R
5) check the APP_NAME setting in your .ENV file for any value that has spaces in it; if it does, wrap it in quotes
Comments