-
Notifications
You must be signed in to change notification settings - Fork 11.4k
[Bug] Auth::login() expects a user instance instead of id #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Try Auth::loginUsingId(1)... |
That works great, thanks. |
Haha, @taylorotwell, you sneaky bastard. I noticed that you implemented that a while before you wrote that comment. 👍 |
dbpolito
pushed a commit
to dbpolito/framework
that referenced
this issue
Oct 1, 2019
Apply fixes from StyleCI
gonzalom
pushed a commit
to Hydrane/tmp-laravel-framework
that referenced
this issue
Oct 12, 2023
Add missing Event Facade
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In L3 we'd pass the the $user->id to login().
However, L4 expects us to pass a user instance, Auth::login($user).
The text was updated successfully, but these errors were encountered: