title: Laravel, can't log a user by id and then redirect him
body: <p>I'm using Laravel 5.2. I'd like to log a user by his id and then redirect him to the dashboard but it's not working.</p>
  
  <p>I did this:</p>
  
  <pre><code>$result = Auth::loginUsingId($id);
  var_dump($result-&gt;toArray());
  </code></pre>
  
  <p>and the result is fine. It returns the object user with all his data.</p>
  
  <p>But after redirecting the user to the dashboard with <strong>return redirect()->route('dashboard');</strong> it send me to login page! </p>
  
  <p>I discover then that <strong>Auth::user()</strong> returns <strong>null</strong> !  </p>
  
  <p>What shall i do?</p>
  
  <p>Thanks</p>