未找到Laravel 5 Class App \ Console \ Kernel

时间:2015-05-14 09:32:04

标签: php laravel-5

在laravel上运行所有更新然后运行php artisan make:form Forms / PostForm我得到一个未被捕获的ReflectionException错误,无法找到类App \ Console \ Kernel。

Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\Co
nsole\Kernel does not exist' in C:\Projects\messaging\vendor\laravel\framework\s
rc\Illuminate\Container\Container.php on line 776

ReflectionException: Class App\Console\Kernel does not exist in C:\Projects\mess
aging\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 77
6

Call Stack:
    0.0004     125160   1. {main}() C:\Projects\messaging\artisan:0
    0.0387    1054896   2. Illuminate\Foundation\Application->make() C:\Projects
\messaging\artisan:31
    0.0387    1054976   3. Illuminate\Container\Container->make() C:\Projects\me
ssaging\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:644
    0.0387    1054976   4. Illuminate\Container\Container->build() C:\Projects\m
essaging\vendor\laravel\framework\src\Illuminate\Container\Container.php:656
    0.0387    1054976   5. Illuminate\Container\Container->Illuminate\Container\
{closure}() C:\Projects\messaging\vendor\laravel\framework\src\Illuminate\Contai
ner\Container.php:773
    0.0387    1055024   6. Illuminate\Foundation\Application->make() C:\Projects
\messaging\vendor\laravel\framework\src\Illuminate\Container\Container.php:229
    0.0387    1055024   7. Illuminate\Container\Container->make() C:\Projects\me
ssaging\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:644
    0.0388    1055040   8. Illuminate\Container\Container->build() C:\Projects\m
essaging\vendor\laravel\framework\src\Illuminate\Container\Container.php:656
    0.0388    1055216   9. ReflectionClass->__construct() C:\Projects\messaging\
vendor\laravel\framework\src\Illuminate\Container\Container.php:776

1 个答案:

答案 0 :(得分:8)

关于现有项目的错误。确保bootstrap/app.php中的绑定正确无误并运行composer dump-autoload以清除任何遗留问题。