title: Laravel Session Time Out Remaining
body: <p>There's a variety of answers regarding detecting IF the session has timed out. I am NOT asking that.</p>
  
  <p>I am asking, <strong>how can I tell exactly how much time is remaining the user's Laravel session.</strong></p>
  
  <p>Assume I am using the latest version of Laravel.</p>
  
  <p>I am strongly interested in knowing what the Laravel subsystem thinks is the time left remaining before it's native/built-in session timeout expires.  </p>
  
  <p>I am strongly against rolling my own, or creating my own custom timer of any sort.</p>
  
  <p>Not that it matters, but my session lifetime setting configuration (session.php) looks like this (below). And my .ENV setting is also SESSION_LIFETIME=10.</p>
  
  <pre><code> /*
      |--------------------------------------------------------------------------
      | Session Lifetime
      |--------------------------------------------------------------------------
      |
      | Here you may specify the number of minutes that you wish the session
      | to be allowed to remain idle before it expires. If you want them
      | to immediately expire on the browser closing, set that option.
      |
      */
  
      'lifetime' =&gt; env('SESSION_LIFETIME', 10),
  </code></pre>