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;