Php &引用;“类web不存在”;拉威尔喋喋不休
我最近将我的应用程序从Laravel 5.1升级到了5.3 不久之后,我尝试安装chatter 我按照说明,在这里找到: 除此之外,我没有将收益添加到master.blade.php(我没有),而是将它们添加到templates/default.blade.php(本质上是相同的) 完成所有步骤后,我去查看localhost/forums页面,它返回了以下错误:Php &引用;“类web不存在”;拉威尔喋喋不休,php,laravel,Php,Laravel,我最近将我的应用程序从Laravel 5.1升级到了5.3 不久之后,我尝试安装chatter 我按照说明,在这里找到: 除此之外,我没有将收益添加到master.blade.php(我没有),而是将它们添加到templates/default.blade.php(本质上是相同的) 完成所有步骤后,我去查看localhost/forums页面,它返回了以下错误: ReflectionException in Container.php line 749: Class web does not
ReflectionException in Container.php line 749:
Class web does not exist
这是什么原因造成的?确保您的
应用程序/Http/Kernel.php
中有$middlewareGroups
或者从第28行开始添加。
如果已经有,一定要有
\Illuminate\Routing\Middleware\SubstituteBindings::class,
在网站中
。
您还应该检查并添加
'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class,
在$routeMiddleware
数组中
谷歌显示,这一问题已经在