4

My users can login using social options (Facebook, Twitter) and so I don't use the Auth::attempt() method, but the Auth::login().

How can I remember my users so the don't have to login every time they restart the browser?

Laurence
  • 57,126
  • 20
  • 168
  • 205
duality_
  • 16,681
  • 21
  • 76
  • 92

1 Answers1

8

It is not in the docs, but if you look at the code;

public function login(UserInterface $user, $remember = false)

So just do

Auth::login($user, true);
Laurence
  • 57,126
  • 20
  • 168
  • 205