diff --git a/src/ClientRepository.php b/src/ClientRepository.php index 9f85c0899..31082b4ab 100644 --- a/src/ClientRepository.php +++ b/src/ClientRepository.php @@ -174,8 +174,9 @@ public function regenerateSecret(Client $client) */ public function revoked($id) { - return Client::where('id', $id) - ->where('revoked', true)->exists(); + $client = Client::find($id); + + return is_null($client) || $client->revoked; } /**