Skip to content

Commit

Permalink
Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Oct 31, 2024
1 parent 7933c5b commit b5784af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Auth/Concerns/WithAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,7 +17,7 @@ protected function getAuthId(): int|string|null
return Auth::id();
}

protected function getAuthModel(): ?User
protected function getAuthModel(): ?Authenticatable
{
return Auth::getUser();
}
Expand Down

0 comments on commit b5784af

Please sign in to comment.