protected function revokeOrDeleteAccessTokens(Token $token, $tokenId)
    {
        $query = Token::where('user_id', $token->user_id)->where('client_id', $token->client_id);

        if ($tokenId) {
            $query->where('id', '<>', $tokenId);
        }

        if (Passport::$pruneRevokedTokens) {
            $query->delete();
        } else {
            $query->update(['revoked' => true]);
        }
    }
protected function revokeOrDeleteAccessTokens(Token $token, $tokenId)
    {
        $query = Token::where('user_id', $token->user_id)->where('client_id', $token->client_id);

        if ($tokenId) {
            $query->where('id', '<>', $tokenId);
        }

        if (Passport::$pruneRevokedTokens) {
            $query->delete();
        } else {
            $query->update(['revoked' => true]);
        }
    }
protected function revokeOrDeleteAccessTokens ( Token $ token , $ tokenId ) { $ query = Token :: where ( 'user_id' , $ token -> user_id ) -> where ( 'client_id' , $ token -> client_id ) ; if ( $ tokenId ) { $ query -> where ( 'id' , '<>' , $ tokenId ) ; } if ( Passport :: $ pruneRevokedTokens ) { $ query -> delete ( ) ; } else { $ query -> update ( [ 'revoked' => true ] ) ; } }
Revoke the user's other access tokens for the client.

@param  Token $token
@param  string $tokenId
@return void
Revoke the user s other access tokens for the client .