diff --git a/src/LaravelDebugbar.php b/src/LaravelDebugbar.php index 54e82764..cfc6db4a 100644 --- a/src/LaravelDebugbar.php +++ b/src/LaravelDebugbar.php @@ -897,9 +897,12 @@ function (&$item) { */ public function injectDebugbar(Response $response) { + $config = $this->app['config']; $content = $response->getContent(); $renderer = $this->getJavascriptRenderer(); + $autoShow = $config->get('debugbar.ajax_handler_auto_show', true); + $renderer->setAjaxHandlerAutoShow($autoShow); if ($this->getStorage()) { $openHandlerUrl = route('debugbar.openhandler'); $renderer->setOpenHandlerUrl($openHandlerUrl);