hasRole('Super Admin') ? true : null; // }); Gate::before(function (User $user, string $ability) { return $user->isSuperAdmin() ? true: null; }); // URL::forceScheme('https'); // if (!Type::hasType('citext')) { // Type::addType('citext', \Doctrine\DBAL\Platforms\PostgreSqlPlatform::class); // } Gate::policy(Role::class, RolePolicy::class); Gate::policy(Permission::class, PermissionPolicy::class); } }