diff --git a/src/Console/ClearCommand.php b/src/Console/ClearCommand.php index 3fd7d1a6..267881d9 100644 --- a/src/Console/ClearCommand.php +++ b/src/Console/ClearCommand.php @@ -18,6 +18,8 @@ public function __construct(DebugBar $debugbar) public function fire() { + $this->debugbar->boot(); + if ($storage = $this->debugbar->getStorage()) { $storage->clear(); $this->info('Debugbar Storage cleared!'); diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 7beade10..d30153b5 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -61,7 +61,7 @@ public function boot() $this->publishes([$configPath => $this->getConfigPath()], 'config'); if ($app->runningInConsole()) { - $this->app['config']->set('debugbar.enabled', false); + return; } $routeConfig = [