Marcelgwerder\ApiHandler\Result::getResponse PHP Метод

getResponse() публичный Метод

Return a laravel response object including the correct status code and headers
public getResponse ( ) : Illuminate\Support\Facades\Response
Результат Illuminate\Support\Facades\Response
    public function getResponse()
    {
        $headers = $this->getHeaders();
        if ($this->parser->mode == 'count') {
            return Response::json($headers, 200, $headers);
        } else {
            if ($this->parser->envelope) {
                return Response::json(['meta' => $headers, 'data' => $this->getResult()], 200);
            } else {
                return Response::json($this->getResult(), 200, $headers);
            }
        }
    }