environment('local', 'testing', 'Staging')) { URL::forceScheme('http'); } Gate::before(function ($user, $ability) { if ($user->email == env("SUPER_ADMIN_ACCOUNT", "admin@ogilvy.com")) { return true; // Super admin always passes } // Continue to policy logic for other users return null; // Null lets the policy decide }); } }