From eabef3695317d2d69ea1e8f719c73157e2baa206 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Thu, 17 Aug 2017 09:33:08 +0200 Subject: [PATCH] Update ServiceProvider.php --- src/ServiceProvider.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 185461c5..2f9b4aaf 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -67,7 +67,10 @@ public function boot() $configPath = __DIR__ . '/../config/debugbar.php'; $this->publishes([$configPath => $this->getConfigPath()], 'config'); - $enabled = (bool) $this->app['config']->get('debugbar.enabled'); + $enabled = $this->app['config']->get('debugbar.enabled'); + if ($enabled === null) { + $enabled = $this->app['config']->get('app.debug'); + } if (! $enabled) { return;