![](/img/trans.png)
[英]Laravel error Uncaught exception 'ReflectionException' with message 'Class App\Http\Kernel does not exist'
[英]Uncaught exception 'ReflectionException' with message 'Class App\Console\Kernel does not exist'
運行此命令composer dump-autoload
后,出現以下錯誤。 但是,在運行此命令之前,它運行良好。
Uncaught exception 'ReflectionException' with message 'Class
App\Console\Kernel does not exist' in
vendor/laravel/framework/src/Illuminate/Container/Container.php:719
檢查路徑: /your_root/app/Console
看看那里是否有Kernel.php文件。 該文件注冊所有命令。
也許您以某種方式刪除了文件,這就是您收到錯誤的原因。
我的 app\\Console 文件夾中有該文件,但是在執行完所有 artisan 和 composer 命令后我收到了這條消息。 我通過創建一個新的 kernel.php 文件來解決它,從原始文件中復制所有內容。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.