title: how to do "remember me" login option in laravel?
body: <p>so what i am working on is when i check the <strong>remember me</strong> checkbox the user when logout the form (username and password) remember the user data like that : <img src="https://i.stack.imgur.com/u8nDY.png" alt="enter image description here">  </p>
  
  <p><strong>so this is my code it not works :(</strong></p>
  
  <pre><code>// create our user data for the authentication
          $userdata = array(
                  'email'     =&gt; Input::get('email'),
                  'password'  =&gt; Input::get('password')
          );
  
          // attempt to do the login
          if (Auth::attempt($userdata, true)) {
  
              Session::flash('message', array('body'=&gt;trans('login-signup.welcome'), 'type'=&gt;'success'));
              return Redirect::to('/');
  
      }
  </code></pre>