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(); }