This commit is contained in:
2025-11-03 23:29:08 +05:00
parent 516c17326c
commit 504ddfbf8d
14 changed files with 138 additions and 21 deletions

View File

@@ -20,6 +20,11 @@ class EnsureProfileIsFilled
/** @var \App\Models\User */
$user = $request->user();
// Skip if user is system user...
if ($user->isSystemUser()) {
return $next($request);
}
// 1. If user is not logged in, or profile is already complete, do nothing.
// (Based on your logic: must_fill_profile == true means complete)
if (! $user->must_fill_profile) {