Skip to content

Commit fddfb08

Browse files
committed
Merge pull request barryvdh#287 from jsmunich/master
Fix for route caching
2 parents f904a4b + 28f5175 commit fddfb08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ServiceProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ public function boot()
2525
$this->app['config']->set('debugbar.enabled', false);
2626
}
2727

28-
if (! $this->app['config']->get('debugbar.enabled')) {
29-
return;
30-
}
31-
3228
$routeConfig = [
3329
'namespace' => 'Barryvdh\Debugbar\Controllers',
3430
'prefix' => '_debugbar',
@@ -50,6 +46,10 @@ public function boot()
5046
]);
5147
});
5248

49+
if (! $this->app['config']->get('debugbar.enabled')) {
50+
return;
51+
}
52+
5353
/** @var LaravelDebugbar $debugbar */
5454
$debugbar = $this->app['debugbar'];
5555
$debugbar->boot();

0 commit comments

Comments
 (0)