dimanche 17 juin 2018

laravel login for ever

In Laravel when my user in site log in i want to stay log in , while my user logout what shoud i do ?

protected function attemptLogin(Request $request)
{
    return $this->guard()->attempt(
        $this->credentials($request), $request->filled('remember')
    );
}

i change to

protected function attemptLogin(Request $request)
{
    return $this->guard()->attempt(
        $this->credentials($request), $request->filled('1')
    );
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire