title: Laravel authentication, I can't retrieve the logged in user
body: <pre><code>Auth::check()
  </code></pre>
  
  <p>Always returns false. It is weird as the login function redirects me to the $redirectTo url, so the attempt is successful, but after I cannot retrieve the user. I am using Laravel 5.2.14 and Xampp. I don't know what else to write, since it is supposed to work out of the box.</p>
  
  <p>This is the output of php artisan route:list</p>
  
  <pre><code>+--------+----------+---------------+------+-------------------------------------------------------+----------------+
  | Domain | Method   | URI           | Name | Action                                                | Middleware     |
  +--------+----------+---------------+------+-------------------------------------------------------+----------------+
  |        | GET|HEAD | /             |      | Closure                                               |                |
  |        | GET|HEAD | add           |      | Closure                                               | web,auth.basic |
  |        | POST     | addclub       |      | App\Http\Controllers\Clubs@addclub                    | web            |
  |        | POST     | auth/login    |      | App\Http\Controllers\Auth\AuthController@postLogin    | web,guest      |
  |        | GET|HEAD | auth/login    |      | App\Http\Controllers\Auth\AuthController@getLogin     | web,guest      |
  |        | GET|HEAD | auth/logout   |      | App\Http\Controllers\Auth\AuthController@getLogout    | web,guest      |
  |        | POST     | auth/register |      | App\Http\Controllers\Auth\AuthController@postRegister | web,guest      |
  |        | GET|HEAD | auth/register |      | App\Http\Controllers\Auth\AuthController@getRegister  | web,guest      |
  |        | GET|HEAD | delete/{id}   |      | App\Http\Controllers\Clubs@delete                     |                |
  |        | GET|HEAD | details/{id}  |      | App\Http\Controllers\Clubs@details                    |                |
  |        | GET|HEAD | listofclubs   |      | App\Http\Controllers\Clubs@listofclubs                |                |
  +--------+----------+---------------+------+-------------------------------------------------------+----------------+
  </code></pre>
  
  <p>My config/sessions.php:</p>
  
  <p>
  
  <pre><code>return [
  
      'driver' =&gt; env('SESSION_DRIVER', 'file'),
  
      'lifetime' =&gt; 120,
  
      'expire_on_close' =&gt; false,
  
      'encrypt' =&gt; false,
  
      'files' =&gt; storage_path('framework/sessions'),
  
      'connection' =&gt; null,
  
      'table' =&gt; 'sessions',
  
      'lottery' =&gt; [2, 100],
  
      'cookie' =&gt; 'laravel_session',
  
      'path' =&gt; '/',
  
      'domain' =&gt; null,
  
      'secure' =&gt; false,
  
  ];
  </code></pre>