找不到特征'Illuminate \ Foundation \ Auth \ Access \ AuthorizesResources' [英] Trait 'Illuminate\Foundation\Auth\Access\AuthorizesResources' not found
本文介绍了找不到特征'Illuminate \ Foundation \ Auth \ Access \ AuthorizesResources'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人遇到这个错误吗?
请帮助谢谢.
推荐答案
如果您使用的是Laravel 5.3,请执行以下操作:
If you are using Laravel 5.3 do the following:
从升级指南中:AuthorizesResources特性
From the upgrade guides: The AuthorizesResources Trait
AuthorizesResources特征已与AuthorizesRequests特征合并.您应该从app/Http/Controllers/Controller.php文件中删除AuthorizesResources特征.
The AuthorizesResources trait has been merged with the AuthorizesRequests trait. You should remove the AuthorizesResources trait from your app/Http/Controllers/Controller.php file.
这篇关于找不到特征'Illuminate \ Foundation \ Auth \ Access \ AuthorizesResources'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文