title: Laravel Sanctum | Delete current user token not working
body: <p>i really need help with one little thing I try to do. I try to use concurrent personal_access_tokens in my laravel / Vue setup for one user. Everything is working fine, all but one thing where I want to delete one token by it's id when the user is logging out. With the login of one user, I create a personal_access_token for them. With the logout this specific access_token should be deleted.</p>
  <p>Right now in my logout method, I delete all tokens. That works fine, but when deleting one specific token (which should work) I always get errors that this method doesn't exist:</p>
  <pre><code>public function logout(Request $request){
      
     Auth::guard('web')-&gt;logout();
      
     // First try: auth()-&gt;user()-&gt;currentAccessToken()-&gt;delete();
     // Second try: $request-&gt;user()-&gt;token()-&gt;revoke();
     auth()-&gt;user()-&gt;tokens()-&gt;delete();
  }
  </code></pre>
  <p>The error:</p>
  <blockquote>
  <p><strong>LOG.error: Call to undefined method
  Laravel\Sanctum\TransientToken::delete() {&quot;userId&quot;:18,&quot;exception&quot;:{}}</strong></p>
  </blockquote>
  <p>api.php</p>
  <pre><code>Route::group(['middleware' =&gt; 'auth:sanctum'], function () {
      Route::post('/logout', [AuthController::class, 'logout']);
  });
  </code></pre>
  <p>I tried following things from:</p>
  <blockquote>
  <p><a href="https://laracasts.com/discuss/channels/laravel/passport-how-can-i-manually-revoke-access-token" rel="nofollow noreferrer">https://laracasts.com/discuss/channels/laravel/passport-how-can-i-manually-revoke-access-token</a>
  (passport) <a href="https://laracasts.com/discuss/channels/laravel/deleting-users-passport-token-on-logout" rel="nofollow noreferrer">https://laracasts.com/discuss/channels/laravel/deleting-users-passport-token-on-logout</a>
  <a href="https://divinglaravel.com/authentication-and-laravel-airlock" rel="nofollow noreferrer">https://divinglaravel.com/authentication-and-laravel-airlock</a>
  <a href="https://laracasts.com/discuss/channels/laravel/spa-and-mobile-logout?page=1&amp;replyId=698040" rel="nofollow noreferrer">https://laracasts.com/discuss/channels/laravel/spa-and-mobile-logout?page=1&amp;replyId=698040</a></p>
  </blockquote>
  <p>In all those threads the used methods should work but not for me. Do I overlook something?</p>
  <p>I appreciate every help!</p>