Hesto/multi-auth

Remember me on laravel 5.5

Opened this issue · 1 comments

Hi, i am trying to implement the remember me checkbox but it doesn't save the remember me token in the database once i log in. Is there something special to do since i have admin and user login. Thanks

You can try this one
Auth::guard('user')->attempt(['email' => $request->input('email'), 'password' => $request->input('password')], $request->input('remember'));

It means you should override the login functions in your AuthController file and use above code