title: Laravel 5.2 - Call to undefined method Illuminate\Support\Facades\Request::session()
body: <p>I am using session in Laravel 5.2 and here is my Controller code :</p>
  
  <pre><code>if ($request-&gt;session()-&gt;has('username')) {
          return view('dashboard');
  }
  </code></pre>
  
  <p>I need to use session, and getting this error :</p>
  
  <blockquote>
    <p>FatalErrorException in HomeController.php line 21: Call to undefined
    method Illuminate\Support\Facades\Request::session()</p>
  </blockquote>
  
  <p>How to resolve it ?</p>