Skip to content

Commit b5784af

Browse files
committed
Fix return type
1 parent 7933c5b commit b5784af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Auth/Concerns/WithAuthentication.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Foxws\WireUse\Auth\Concerns;
44

5-
use Illuminate\Foundation\Auth\User;
5+
use Illuminate\Contracts\Auth\Authenticatable;
66
use Illuminate\Support\Facades\Auth;
77

88
trait WithAuthentication
@@ -17,7 +17,7 @@ protected function getAuthId(): int|string|null
1717
return Auth::id();
1818
}
1919

20-
protected function getAuthModel(): ?User
20+
protected function getAuthModel(): ?Authenticatable
2121
{
2222
return Auth::getUser();
2323
}

0 commit comments

Comments
 (0)