Laravel错误,消息“ Class App \ Http \ Kernel不存在”的未捕获异常“ Re​​flectionException”

Rez*_*sys 3 php package laravel illuminate-container laravel-5.2

当我想在laravel 5.2项目中添加表单时,在composer中遇到了一些错误。之后,我的整个项目出现了一个奇怪的错误:

致命错误:C:\ xampp \ htdocs \ gifkadeh \ vendor \ laravel \ framework \ src \ Illuminate \ Container \ Container.Container.php:738堆栈跟踪中未捕获的异常“ Re​​flectionException”,消息为“类App \ Http \ Kernel不存在” :#0 C:\ xampp \ htdocs \ gifkadeh \ vendor \ laravel \ framework \ src \ Illuminate \ Container \ Container.php(738):ReflectionClass-> __ construct('App \ Http \ Kernel')#1 C:\ xampp \ htdocs \ gifkadeh \ vendor \ laravel \ framework \ src \ Illuminate \ Container \ Container.php(633):Illuminate \ Container \ Container-> build('App \ Http \ Kernel',Array)#2 C:\ xampp \ htdocs \ gifkadeh \ vendor \ laravel \ framework \ src \ Illuminate \ Foundation \ Application.php(697):Illuminate \ Container \ Container-> make('App \ Http \ Kernel',Array)#3 C:\ xampp \ htdocs \ gifkadeh \ vendor \ laravel \ framework \ src \ Illuminate \ Container \ Container.php(230):Illuminate \ Foundation \ Application-> make('App \ Http \ Kernel',Array)#4 C:\ xampp \ htdocs \ gifkadeh \ vendor \ laravel \ framework \ src \ Illuminate \ Container \ Container.php(735):Illuminate \ Container \ Container-> Illuminate \ Container {closure}(Object(Illuminate in C:\ xampp \ htdocs \ gifkadeh \ vendor \ laravel \ framework \ src \ Illuminate \ Container \ Container.php在第738行

Fra*_*ati 5

有时,依赖项不兼容或存在一些错误。您可以尝试:

  1. 恢复旧的composer.lock文件
  2. 删除供应商文件夹
  3. 执行“ composer安装”