2

I am getting the below error after i ran this command composer dump-autoload. However, before running this command, it was working fine.

Uncaught exception 'ReflectionException' with message 'Class 
App\Console\Kernel does not exist' in 
vendor/laravel/framework/src/Illuminate/Container/Container.php:719

2 Answers 2

1

Check the path: /your_root/app/Console

See if you have Kernel.php file there. This file registers all commands.

Maybe somehow you have deleted the file and thats why you are getting the error.

Sign up to request clarification or add additional context in comments.

2 Comments

Accurate path would be "resource\App\Console\Kernel ". But its not going inside resource.
In my all Laravel Projects correct path was and is: my_root\app\Console\Kernel.php ,
0

I had the file in my app\Console folder, but I got this message after all artisan and composer commands. I solved it by creating a new kernel.php file, copying all the content from the original file.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.