From b5784af79cac543c62400d1a0cfea23d17fa5a1a Mon Sep 17 00:00:00 2001 From: francoism90 Date: Thu, 31 Oct 2024 17:38:28 +0100 Subject: [PATCH] Fix return type --- src/Auth/Concerns/WithAuthentication.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Auth/Concerns/WithAuthentication.php b/src/Auth/Concerns/WithAuthentication.php index 67e9b88..316f1e3 100644 --- a/src/Auth/Concerns/WithAuthentication.php +++ b/src/Auth/Concerns/WithAuthentication.php @@ -2,7 +2,7 @@ namespace Foxws\WireUse\Auth\Concerns; -use Illuminate\Foundation\Auth\User; +use Illuminate\Contracts\Auth\Authenticatable; use Illuminate\Support\Facades\Auth; trait WithAuthentication @@ -17,7 +17,7 @@ protected function getAuthId(): int|string|null return Auth::id(); } - protected function getAuthModel(): ?User + protected function getAuthModel(): ?Authenticatable { return Auth::getUser(); }