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