title: difference between using the session via an HTTP request instance versus using the global session helper in Laravel
body: <p>I could not find any information related two types of session access methods.
  <code>$request-&gt;session()</code> from HTTP request instance and <code>session()</code> from session helper in Laravel 5.3 .
  Is there any difference or which one to use when ?</p>
  
  <p>How to send a get request to below controller method when using P.H.P unit </p>
  
  <pre><code>public function testMyMethod(Request $request){
  $userExist = $request-&gt;session()-&gt;exists('user_id');
  }
  </code></pre>