[英]Uncaught exception 'ReflectionException' with message 'Class App\Console\Kernel does not exist'
I am getting the below error after i ran this command composer dump-autoload
.运行此命令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
Check the path: /your_root/app/Console
检查路径: /your_root/app/Console
See if you have Kernel.php file there.看看那里是否有Kernel.php文件。 This file registers all commands.该文件注册所有命令。
Maybe somehow you have deleted the file and thats why you are getting the error.也许您以某种方式删除了文件,这就是您收到错误的原因。
I had the file in my app\\Console folder, but I got this message after all artisan and composer commands.我的 app\\Console 文件夹中有该文件,但是在执行完所有 artisan 和 composer 命令后我收到了这条消息。 I solved it by creating a new kernel.php file, copying all the content from the original file.我通过创建一个新的 kernel.php 文件来解决它,从原始文件中复制所有内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.