src/TokenRepository.php
public function findForUser($id, $userId)
    {
        return Passport::token()->where('id', $id)->where('user_id', $userId)->first();
    }
public function findForUser($id, $userId)
    {
        return Passport::token()->where('id', $id)->where('user_id', $userId)->first();
    }
public function findForUser ( $ id , $ userId ) { return Passport :: token ( ) -> where ( 'id' , $ id ) -> where ( 'user_id' , $ userId ) -> first ( ) ; }
Get a token by the given user ID and token ID.

@param  string  $id
@param  int  $userId
@return \Laravel\Passport\Token|null
Get a token by the given user ID and token ID .