Encore\Admin\Middleware\PjaxMiddleware::filterResponse PHP Method

filterResponse() protected method

Prepare the PJAX-specific response content.
protected filterResponse ( Illuminate\Http\Response $response, string $container )
$response Illuminate\Http\Response
$container string
    protected function filterResponse(Response $response, $container)
    {
        $crawler = new Crawler($response->getContent());
        $response->setContent($this->makeTitle($crawler) . $this->fetchContents($crawler, $container));
        return $this;
    }