Support the ongoing development of Laravel.io →
Authentication
Last updated 2 years 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 2 years ago.
0

I didn't try but

// log the user in then redirect

Auth::login($user);

return Redirect::to('dashboard');
Last updated 2 years ago.
0

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

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.