diff --git a/src/Utills/UserUtils.php b/src/Utills/UserUtils.php index 058e4a9..57f5ea2 100644 --- a/src/Utills/UserUtils.php +++ b/src/Utills/UserUtils.php @@ -51,7 +51,7 @@ public static function getCurrentGuardName(): ?string /** * Get the user id by guards. */ - public static function getUserId(): ?int + public static function getUserId(): int|string|null { $guards = config('user-monitoring.user.guards', ['web']);