Skip to content

Commit

Permalink
Update ServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored Aug 17, 2017
1 parent 3030d1a commit eabef36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eabef36

Please sign in to comment.