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

I didn't try but

// log the user in then redirect

Auth::login($user);

return Redirect::to('dashboard');
Last updated 1 year ago.
0

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

Last updated 1 year ago.
0

Sign in to participate in this thread!

JetBrains

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.

© 2023 Laravel.io - All rights reserved.