Support the ongoing development of Laravel.io →
Authentication
Last updated 2 years ago.
0

I suppose, after you save the user object in your database, The user object will obtain an id number. I think you can call

Auth::loginUsingId($user->id);

just after the creation to log the user in. Don't know if this will work, but I got the information from the laravel documenation. Here is the rest:

http://laravel.com/docs/4.2/security#authenticating-users
Last updated 2 years ago.
0

Thanks Masterakado, I was inexplicably passing the object, not the ID!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.