cache = NullCache::class; //Get the esi configuration from config files $config = config('esi'); //Get the refresh token from the database $token = $esiHelper->GetRefreshToken($config['primary']); $this->esi = $esiHelper->SetupEsiAuthentication($token); } public function GetContracts($corpId) { $contracts = null; try { $contracts = $this->esi->invoke('get', '/corporations/{corporation_id}/contracts/', [ 'corporation_id' => $corpId, ]); } catch(RequestFailedException $e) { return null; } return $contracts; } } ?>