sSiteWww = config("path.url_github_base") ?? ''; } public function index(NasaQueryRequest $oRequest) { $sNick = $oRequest->route('nick'); $this->sSiteWww = $sNick.'.'.$this->sSiteWww; $aCleanQuery = $oRequest->cleanQuery(); $oResponse = Http::nasa($this->sSiteWww)->get($this->sApiPath, $aCleanQuery); $aResponse = $oResponse->json(); $aResponse['sApiPath'] = $this->sApiPath; $aResponse['sSiteWww'] = $this->sSiteWww; $aResponse['sHeaderActionView'] = $this->sHeaderActionView; $aResponse['sListView'] = $this->sListView; $aResponse['cNasaBook'] = $this->getNasaBook(); $aResponse['aCustom'] = $this->aCustom ?? []; return view($this->sView, $aResponse); } }