diff --git a/src/Auth/Concerns/WithAuthentication.php b/src/Auth/Concerns/WithAuthentication.php index 82e03af..7ea4c33 100644 --- a/src/Auth/Concerns/WithAuthentication.php +++ b/src/Auth/Concerns/WithAuthentication.php @@ -11,14 +11,14 @@ protected function isAuthenticated(): bool return auth()->check(); } - protected function getAuthUser(): ?User + protected function getAuthId(): int|string|null { - return auth()->user(); + return auth()->id(); } - protected function getAuthId(): int|string|null + protected function getAuthModel(): ?User { - return auth()->id(); + return auth()->user(); } protected function getAuthKey(): int|string|null