public function postAddDestinyGamertag(AdminAddDestinyGamertagRequest $request) { $client = new DestinyClient(); $account = $client->fetchAccountByGamertag(1, $request->request->get('gamertag')); $this->dispatch(new UpdateAccount($account)); return \Redirect::action('Destiny\\ProfileController@index', [$account->seo]); }
public function validateGamertagReal($attribute, $value, $parameters) { $client = new Client(); try { $account = $client->fetchAccountByGamertag(1, $value); } catch (PlayerNotFoundException $e) { return false; } return true; }
/** * Execute the command. * * @return void */ public function handle() { $client = new Client(); $account = $client->fetchAccountByGamertag($this->type, $this->gamertag); $client->fetchAccountData($account); }