[英]Laravel 5.4 Class 'App\Http\Controllers\Admin\Auth\Auth' not found
I've got this error while logging into the admin section. 登录管理部分时出现此错误。 We have used the sample project from this url - https://github.com/jayminpanchal/laravel-multiauth-demo . 我们已经从该URL- https://github.com/jayminpanchal/laravel-multiauth-demo使用了示例项目。
This is the complete error got:: 这是得到的完整错误::
Whoops, looks like something went wrong.
1/1
FatalErrorException in LoginController.php line 52:
Class 'App\Http\Controllers\Admin\Auth\Auth' not found
in LoginController.php line 52
This issue was posted on the github repo you reference. 该问题已发布在您参考的github仓库中。
The solution posted by github user aliwesome seemed to be that you must use Auth Facade in Admin\\Auth\\LoginController github用户aliwesome发布的解决方案似乎是您必须在Admin \\ Auth \\ LoginController中使用Auth Facade
add this line :use Illuminate\\Support\\Facades\\Auth;
添加此行:使用Illuminate\\Support\\Facades\\Auth;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.