title: Laravel6 Passport accessToken revoke customly
body: <p>I am Doing laravel api based project where i am disabling the access token on a logout api just doing <code>revoke =&gt; 1</code> and i have to show the login detais of that user basically the <code>device/browser/ip</code> etc </p>
  
  <p>In logout i am revoking that token manually by that method but when it comes a senario like if a user close the browser then the token is disabled by the set time in <code>AuthServiceProvider.php</code></p>
  
  <pre><code>$this-&gt;registerPolicies();
  Passport::routes(); 
  Passport::tokensExpireIn(Carbon::now()-&gt;addMinutes(5));
  Passport::personalAccessTokensExpireIn(Carbon::now()-&gt;addMinutes(5));
  Passport::refreshTokensExpireIn(Carbon::now()-&gt;addDays(30));
  </code></pre>
  
  <p>My Logout</p>
  
  <pre><code>public function logOut($type) {
          if (Auth::check()) {
              $user = Auth::user();
              $token = Auth::user()-&gt;token();
              $data = Token::where('user_id',$user-&gt;id)
                            -&gt;where('id', $token-&gt;id)
                            -&gt;where('name', $type)
                            -&gt;first();
              $data-&gt;update(['revoked' =&gt; 1, 'expires_at' =&gt; \Carbon\Carbon::now()]);            
              $response = [
                  'status' =&gt; true,
                  'message' =&gt; 'Successfully Logged Out',
              ];
              return response()-&gt;json($response); //@ sending response
          } else {
              $response = [
                      'status' =&gt; false,
                      'message' =&gt; 'Bad Request!',
              ];
              return response()-&gt;json($response); //@ sending response
          }                     
      }
  </code></pre>
  
  <p>Here the token is expiring after 5 mininutes <code>[returning 401 unauthenticated]</code> but the <code>revoke</code> is still remains 0 </p>
  
  <p>My question is how to do the token expire as well as the <code>revoke =&gt; 1</code> where <code>AuthServiceProvider</code> doing it??
  I am Thinking about to do it using cron! Will it be okey?</p>
  
  <p>Thanks!</p>