title: how laravel get the user id from session?
body: <p>Ok, now I know that if I use file driver for session, the sessions are going to be stored in <code>/storage/framework/sessions</code> , when I echo the <code>Session::getId()</code> I get the session Id that is stored in the storage.</p>
  
  <p>when I open that session, it look like something like this:</p>
  
  <pre><code>a:7:{s:6:"_token";s:40:"hgG3c6DQ5XHEvwK7925CmfGUK54dhFPIWB2kFCUz";s:3:"url";a:0:{}s:9:"_previous";a:1:{s:3:"url";s:27:"http://e-learning.local/p2p";}s:6:"_flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}s:50:"login_web_59ba36addc2b2f9401580f014c7f58ea4e30989d";i:6;s:3:"key";s:8:"smothing";s:22:"PHPDEBUGBAR_STACK_DATA";a:0:{}}
  </code></pre>
  
  <blockquote>
    <p>This is localhost development so no warry to publish the session</p>
  </blockquote>
  
  <p>I wounder, there is no user id or user name at all !, how laravel get the auth user from this session !</p>
  
  <p>what is the value needed to be matched in order to know the user ?</p>
  
  <p>e.g <code>Auth::id()</code> get the user id from session, but how ! if there is no indicator in the session about the user id or something :\</p>
  
  <p>furthermore, if I have the session id for the user, and I can't use <code>Auth::id()</code> to get the user id (due to fact that I'm building another app using another framework inside laravel, but they should have the same users) , can i get the user from the session ?</p>