diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 9078fe8e5..966a54746 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -63,6 +63,10 @@ function ($app) { */ public function boot() { + if (!$this->app['config']->get('app.debug')) { + return; + } + $configPath = __DIR__ . '/../config/debugbar.php'; $this->publishes([$configPath => $this->getConfigPath()], 'config');