Laravel 4: how to remember a user when logging him in using Auth::login

laravel, laravel-4

Solution

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);

Problem

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?

Original source