Support the ongoing development of Laravel.io →
Authentication
Last updated 3 months ago.
0

So after you call save(), do:

$credentials = array(
    'email' => Input::get('email'),
    'password' => Input::get('password')
);

if (Auth::attempt($credentials)) {
    return Redirect::to('dashboard');
}
Last updated 3 months ago.
0

I didn't try but

// log the user in then redirect

Auth::login($user);

return Redirect::to('dashboard');
Last updated 3 months ago.
0

Perfect, I might extract that to its own method but that worked! Thanks!

Last updated 3 months ago.
0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.