C
C
Cavin March2017-01-16 22:02:47
Laravel
Cavin March, 2017-01-16 22:02:47

User login with a token without a checkbox?

Hello. In general, the thing is, I want to do authorization on tokens. That is, in principle, Laravel has such a feature as rememberToken, which remembers the user until he clears cookies, or until he logs out of the account. So, tokens are created only when a person logs in with a checked checkbox (Remember Me), and I want tokens to be always created, regardless of whether the user checked this checkbox or not. Tell me at least where to dig ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JhaoDa, 2017-01-16
@ForbsmC

Consider what could replace $request->has('remember') ?

V
Vladislav Nagorny, 2017-01-17
@esvils

Auth::login($user,true);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question