src/Services/DocumentSearch.php
private function get()
    {
        $this->set_site_id();
        $this->set_log_query();
        $this->arrPayload['query'] = QueryLanguage::getQuery(
            WpCxense::instance()->settings->getOrganisationPrefix(),
            $this->arrSearch['query']
        );

        $objResponse = HttpRequest::get_instance()->set_auth()->post('document/search', [
            'body' => json_encode($this->arrPayload, JSON_UNESCAPED_UNICODE)
        ]);

        return json_decode($objResponse->getBody());
    }
private function get()
    {
        $this->set_site_id();
        $this->set_log_query();
        $this->arrPayload['query'] = QueryLanguage::getQuery(
            WpCxense::instance()->settings->getOrganisationPrefix(),
            $this->arrSearch['query']
        );

        $objResponse = HttpRequest::get_instance()->set_auth()->post('document/search', [
            'body' => json_encode($this->arrPayload, JSON_UNESCAPED_UNICODE)
        ]);

        return json_decode($objResponse->getBody());
    }
Get documents

@return \Illuminate\Support\Collection