src/ClientRepository.php
public function findForUser($clientId, $userId)
    {
        $client = Passport::client();

        return $client
                    ->where($client->getKeyName(), $clientId)
                    ->where('user_id', $userId)
                    ->first();
    }
public function findForUser($clientId, $userId)
    {
        $client = Passport::client();

        return $client
                    ->where($client->getKeyName(), $clientId)
                    ->where('user_id', $userId)
                    ->first();
    }
public function findForUser ( $ clientId , $ userId ) { $ client = Passport :: client ( ) ; return $ client -> where ( $ client -> getKeyName ( ) , $ clientId ) -> where ( 'user_id' , $ userId ) -> first ( ) ; }
Get a client instance for the given ID and user ID.

@param  int  $clientId
@param  mixed  $userId
@return \Laravel\Passport\Client|null
Get a client instance for the given ID and user ID .