/** * @param $client_id */ public function checkIfClientExist($client_id) { if (!($client = OauthClient::find($client_id)->first())) { $this->error("Looks like that ID is not in the system start with the oauth-tools:adduser command"); exit; } return $client; }