From e5a90819ea243abeff85def3b844f4dac0e50bc5 Mon Sep 17 00:00:00 2001 From: francoism90 Date: Thu, 31 Oct 2024 17:41:44 +0100 Subject: [PATCH] wip --- src/Auth/Concerns/WithAuthentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Auth/Concerns/WithAuthentication.php b/src/Auth/Concerns/WithAuthentication.php index 316f1e3..da66bd2 100644 --- a/src/Auth/Concerns/WithAuthentication.php +++ b/src/Auth/Concerns/WithAuthentication.php @@ -24,7 +24,7 @@ protected function getAuthModel(): ?Authenticatable protected function getAuthKey(): int|string|null { - return $this->getAuthUser()?->getRouteKey(); + return $this->getAuthModel()?->getRouteKey(); } protected function can(string $ability, mixed $arguments = []): bool