src/Response.php
protected function handleIlluminateResponse(IlluminateResponse $content, Closure $callback = null)
    {
        $code     = $content->getStatusCode();
        $response = $content->getContent();

        if ($this->isRenderableResponse($response)) {
            return $response->render();
        } elseif ($this->isNoneHtmlResponse($content)) {
            return $content;
        } elseif ($content->isSuccessful()) {
            return $this->handleResponseCallback($response, $callback);
        }

        return $this->abort($code);
    }
protected function handleIlluminateResponse(IlluminateResponse $content, Closure $callback = null)
    {
        $code     = $content->getStatusCode();
        $response = $content->getContent();

        if ($this->isRenderableResponse($response)) {
            return $response->render();
        } elseif ($this->isNoneHtmlResponse($content)) {
            return $content;
        } elseif ($content->isSuccessful()) {
            return $this->handleResponseCallback($response, $callback);
        }

        return $this->abort($code);
    }
Handle Illuminate\Http\Response content.

@param  \Illuminate\Http\Response  $content
@param  \Closure  $callback

@return mixed

@throws \Symfony\Component\HttpKernel\Exception\HttpException
@throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException