public function postAddHalo5Gamertag(AdminAddHalo5GamertagRequest $request) { $client = new Halo5Client(); $account = $client->getAccountByGamertag($request->request->get('gamertag')); $this->dispatch(new UpdateHalo5Account($account)); return \Redirect::action('Halo5\\ProfileController@index', [$account->seo]); }
public function validateH5GamertagReal($attribute, $value, $parameters) { $client = new Halo5Client(); try { $account = $client->getAccountByGamertag($value); } catch (PlayerNotFoundException $e) { return false; } return true; }