user(); abort_if(intval($user?->externalprofiles()?->count()) >= $profileLimit && $user?->cannot(SpecialPermission::BYPASS_FEATURE_FLAGS->value), 403, "User cannot have more than '$profileLimit' external profiles."); return $next($request); } }