prepareData = $this->prepareRequest($request); $response = Http::withHeaders(static::$header) ->post( static::$url, $this->prepareData ); return json_decode((string) $response->getBody(), true); } public function get($request){ $this->prepareData = $this->prepareRequest($request); $response = Http::withHeaders(static::$header) ->get( static::$url, $this->prepareData ); return json_decode((string) $response->getBody(), true); } }