Laravel 5.3 中的路由::控制器 [英] Route::controllers in Laravel 5.3

查看:34
本文介绍了Laravel 5.3 中的路由::控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[BadMethodCallException]

[BadMethodCallException]

方法控制器不存在.

Route::controllers(['auth' => 'Auth\AuthController', 'password' => 'Auth\PasswordController',]);

Laravel 5.3 怎么样?

How is in Laravel 5.3?

谢谢

推荐答案

当您通过 Composer 安装时,可能有少数依赖项无法注入您的项目.您可以再次尝试安装新副本或使用终端在项目目录中写入以下行.

May few dependency cannot injected in your project when you install via composer. You can try again to install a new copy or write the following lines in your project directory using the terminal.

composer install

或者你可以写

composer dump-autoload

希望你能解决这个问题.

Hope you can fix the problem.

这篇关于Laravel 5.3 中的路由::控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆