Mar 7, 2018
9
Level 7
Class config does not exist in
$ php artisan
PHP Fatal error: Uncaught ReflectionException: Class config does not exist in /<project>/vendor/laravel/framework/src/Illuminate/Container/Container.php:767
Stack trace:
#0 /<project>/vendor/laravel/framework/src/Illuminate/Container/Container.php(767): ReflectionClass->__construct('config')
#1 /<project>/vendor/laravel/framework/src/Illuminate/Container/Container.php(646): Illuminate\Container\Container->build('config')
#2 /<project>/vendor/laravel/framework/src/Illuminate/Container/Container.php(601): Illuminate\Container\Container->resolve('config', Array)
#3 /<project>/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(740): Illuminate\Container\Container->make('config', Array)
#4 /<project>/vendor/laravel/framework/src/Illuminate/Container/Container.php(1210): Illuminate\Foundation\Application->make('config')
#5 /<project>/vendor/laravel/framework/src/Illuminat in /<project>/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 767
I was trying to make a function that could edit the .env file. got it to work, but after artisan config:clear config:cache I get this.
Level 7
Hi @kishanbhatt I found out what the issue was.
As I'm not alone, and I where able to replicate it on a fresh laravel install. It's this package with this issue: https://github.com/RachidLaasri/LaravelInstaller/issues/138
Also dump-autoload crashes too.
3 likes
Please or to participate in this conversation.