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); ini_set('max_execution_time', 300); // 300 seconds = 5 minutes ini_set('memory_limit', '512M'); // 512MB } }