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
  • 58,936
  • 21
  • 171
  • 212
duality_
  • 17,738
  • 23
  • 77
  • 95

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
  • 58,936
  • 21
  • 171
  • 212