*/ protected $policies = [ // 'App\Models\Model' => 'App\Policies\ModelPolicy', ]; /** * Register any authentication / authorization services. * * @return void */ public function boot() { $this->registerPolicies(); // Gate::before(function ($user, $ability) { if ($user->hasRole('admin')) { return true; } }); } }