0
My project started presenting the error below when I run any command php artisan ...
:
$ php artisan --version PHP Fatal error: Uncaught ReflectionException: Class config does not exist in Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php:767 Stack trace: #0 Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php(767): ReflectionClass->__construct('config') #1 Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php(646): Illuminate\Container\Container->build('config') #2 Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php(601): Illuminate\Container\Container->resolve('config', Arr ay) #3 Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(735): Illuminate\Container\Container->make('config', Arr ay) #4 Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php(1210): Illuminate\Foundation\Application->make('config') #5 Y:\public\book\projeto\vendor\laravel\framework in Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 767 Fatal error: Uncaught ReflectionException: Class config does not exist in Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php:767 Stack trace: #0 Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php(767): ReflectionClass->__construct('config') #1 Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php(646): Illuminate\Container\Container->build('config') #2 Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php(601): Illuminate\Container\Container->resolve('config', Arr ay) #3 Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(735): Illuminate\Container\Container->make('config', Arr ay) #4 Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php(1210): Illuminate\Foundation\Application->make('config') #5 Y:\public\book\projeto\vendor\laravel\framework in Y:\public\book\projeto\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 767
I can execute no command, but what is ready works, someone can give a strength?
tries to run this command
– Lodi
Returned with the same errors and message below: Script @php Artisan package:Discover --ansi Handling the post-autoload-dump Event returned with error code 255
– Michel Diniz
worst is that all the projects on the server present this error, so it is something related to even I believe
– Michel Diniz
looks in the directory for the vendor folder, see if it exists! and tests this command php Artisan clear-Compiled, if not correct for a check in your . env and see if everything is correct and no special characters!
– Lodi
if it doesn’t work out, test that too Composer update && Composer dump-autoload and then check on that link https://cursos.alura.com.br/forum/topico-erro-ao-executar-php-artisan-serve-37460 Good luck!
– Lodi