src/ClientRepository.php
public function findActive($id)
    {
        $client = $this->find($id);

        return $client && ! $client->revoked ? $client : null;
    }
public function findActive($id)
    {
        $client = $this->find($id);

        return $client && ! $client->revoked ? $client : null;
    }
public function findActive ( $ id ) { $ client = $ this -> find ( $ id ) ; return $ client && ! $ client -> revoked ? $ client : null ; }
Get an active client by the given ID.

@param  int  $id
@return \Laravel\Passport\Client|null
Get an active client by the given ID .