;使用Illuminate \ Foundation \ Support \ Providers \ AuthServiceProvider作为ServiceProvider;
class AuthServiceProvider扩展ServiceProvider{ / ** * 政策 </跨度> 应用程序的映射 启动(GateContract $ gate) { $这 - &GT; registerPolicies($栅极);
// }}
分析 政策 </跨度>
&LT; PHP
命名空间App \ Policies;
使用Illuminate \ Auth \ Access \ HandlesAuthorization;使用App
这是我的解决方案:
\vendor\laravel\framework\src\illuminate\Auth\AuthServiceProvider.php