8000 [Bug] Auth::login() expects a user instance instead of id · Issue #83 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[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

Closed
niallobrien opened this issue Jan 17, 2013 · 3 comments
Closed

[Bug] Auth::login() expects a user instance instead of id #83

niallobrien opened this issue Jan 17, 2013 · 3 comments
8000

Comments

@niallobrien
Copy link

In L3 we'd pass the the $user->id to login().
However, L4 expects us to pass a user instance, Auth::login($user).

@taylorotwell
Copy link
Member

Try Auth::loginUsingId(1)...

@niallobrien
Copy link
Author

That works great, thanks.

@ghost
Copy link
ghost commented Jan 18, 2013

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
gonzalom pushed a commit to Hydrane/tmp-laravel-framework that referenced this issue Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0