Skip to content

Commit

Permalink
fix: Route caching
Browse files Browse the repository at this point in the history
Route caching when the `artisan route:cache` command execute.
  • Loading branch information
NelinD committed Apr 1, 2016
1 parent 72acfb1 commit 2d6c567
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ public function boot()
$configPath = __DIR__ . '/../config/debugbar.php';
$this->publishes([$configPath => $this->getConfigPath()], 'config');

if ($app->runningInConsole()) {
return;
}

$routeConfig = [
'namespace' => 'Barryvdh\Debugbar\Controllers',
'prefix' => $this->app['config']->get('debugbar.route_prefix'),
Expand Down Expand Up @@ -94,6 +90,10 @@ public function boot()
]);
});

if ($app->runningInConsole()) {
return;
}

$enabled = $this->app['config']->get('debugbar.enabled');

// If enabled is null, set from the app.debug value
Expand Down

0 comments on commit 2d6c567

Please sign in to comment.