for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace App\Modules\V1\Acl\Repositories;
use App\Modules\V1\Core\AbstractRepositories\AbstractRepository;
class OauthClientRepository extends AbstractRepository
{
/**
* Return the model full namespace.
*
* @return string
*/
protected function getModel()
return 'App\Modules\V1\Acl\OauthClient';
}
* Revoke the given client.
* @param integer $clientId
* @return void
public function revoke($clientId)
$client = $this->find($clientId);
$client->tokens()->update(['revoked' => true]);
$this->save(['id'=> $clientId, 'revoked' => true]);
* Un revoke the given client.
public function unRevoke($clientId)
$this->save(['id'=> $clientId, 'revoked' => false]);