title: Laravel 5.1 Sessions not working
body: <p>I have fresh Laravel 5.1 distribution.
  The first thing I started from is to extend the <code>Guard</code> class in order to implement my own auth driver. I'm really new with Laravel. So, here is what I did so far.</p>
  
  <p>config/auth.php</p>
  
  <pre><code>'driver' =&gt; 'crm',
  </code></pre>
  
  <p>Providers/AuthServiceProvider.php</p>
  
  <pre><code>   public function boot(GateContract $gate)
      {
          Auth::extend(
              'crm',
              function ($app) {
                  $model = $app['config']['auth.model'];
                  $provider = new EloquentUserProvider($app['hash'], $model);
  
                  return new CrmGuard($provider, $app-&gt;make('session.store'));
              }
          );
      }
  </code></pre>
  
  <p>Currently, I already have a user id, stored in session array and I can access it via</p>
  
  <pre><code>session_start();
  $_SESSION['user_id'];
  </code></pre>
  
  <p>But I want to use a Laravel build in session management.
  I'm trying to rewrite <code>user</code> method of <code>Guard</code> class in my <code>CrmGuard</code> class and I need to get those values from session, I was trying like so</p>
  
  <p><code>$id = $this-&gt;session-&gt;get('user_id');</code></p>
  
  <p>and so</p>
  
  <p><code>session('user_id')</code></p>
  
  <p>Here is how I'm trying to call the <code>user</code> method while testing</p>
  
  <pre><code>Route::get('/', function () {
      \Illuminate\Support\Facades\Auth::user();
     //return view('welcome');
  });
  </code></pre>
  
  <p>But it always return NULL, what I did wrong? Thank you.</p>