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

查看:86
本文介绍了Route :: 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.

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

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