-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setting user id only if the user exist despite alive session (#428)
Co-authored-by: Artem Zherdev <[email protected]>
- Loading branch information
1 parent
8c9aa7d
commit cbe1f8b
Showing
1 changed file
with
1 addition
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cbe1f8b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@artemzherdev Can you please check the following?
Auth::guard()->user()
returns an Authenticable contract which doesn't necessary haveid
andname
properties:https://github.com/laravel/framework/blob/8.x/src/Illuminate/Contracts/Auth/Guard.php#L21-L26
https://github.com/laravel/framework/blob/8.x/src/Illuminate/Contracts/Auth/Authenticatable.php
Does this work too or even better when used with other authentication methods?