'App\Policies\ModelPolicy', ]; /** * 注册任何身份验证/授权服务。 * * @return void */ public function boot() { // 注册应用程序的策略 $this->registerPolicies(); // 执行其他 } }