Skip to content

Commit

Permalink
Update WithAuthentication.php
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 authored Oct 10, 2024
1 parent 1c18abf commit 4f0aac5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Auth/Concerns/WithAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ protected function isAuthenticated(): bool
return auth()->check();
}

protected function getAuthUser(): ?User
protected function getAuthId(): int|string|null
{
return auth()->user();
return auth()->id();
}

protected function getAuthId(): int|string|null
protected function getAuthModel(): ?User
{
return auth()->id();
return auth()->user();
}

protected function getAuthKey(): int|string|null
Expand Down

0 comments on commit 4f0aac5

Please sign in to comment.