user(); $value = $user?->username ?? $user?->user_name ?? $user?->name ?? $user?->email ?? request()->server('PHP_AUTH_USER') ?? ''; if (str_contains((string) $value, '@')) { $value = strstr((string) $value, '@', true) ?: $value; } return strtoupper(trim((string) $value)); } } if (! function_exists('m3_legacy_password')) { /** * Passwords are intentionally unavailable in Core. PostgreSQL access uses * Laravel's configured connection and never reuses a user's login password. */ function m3LegacyPassword(): string { return ''; } }