Hesto / multi-auth

Laravel 5.3, 5.4, 5.5, 5.6, 5.7 multi auth package
MIT License
448 stars 146 forks source link

Remember me on laravel 5.5 #118

Open hugo411 opened 6 years ago

hugo411 commented 6 years ago

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

nguyencnttk8c commented 6 years ago

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