Example #1
0
 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]);
 }
Example #2
0
 public function validateGamertagReal($attribute, $value, $parameters)
 {
     $client = new Client();
     try {
         $account = $client->fetchAccountByGamertag(1, $value);
     } catch (PlayerNotFoundException $e) {
         return false;
     }
     return true;
 }
Example #3
0
 /**
  * Execute the command.
  *
  * @return void
  */
 public function handle()
 {
     $client = new Client();
     $account = $client->fetchAccountByGamertag($this->type, $this->gamertag);
     $client->fetchAccountData($account);
 }