public function __construct(ClientRepository $clientRepository)
 {
     $username = Request::header('php-auth-user');
     $password = Request::header('php-auth-pw');
     $client = $clientRepository->findByName($username);
     if (!$client) {
         abort(401, 'Permission Denied');
     }
     if ($client->apiKey() !== $password) {
         abort(401, 'Permission Denied');
     }
     $this->client_id = $client->id();
 }