Skip to content

Commit f78618a

Browse files
vkarampinisbarryvdh
authored andcommitted
Dont register routes and middleware if we are not in debug mode (#906)
1 parent ba046de commit f78618a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ function ($app) {
6363
*/
6464
public function boot()
6565
{
66+
if (!$this->app['config']->get('app.debug')) {
67+
return;
68+
}
69+
6670
$configPath = __DIR__ . '/../config/debugbar.php';
6771
$this->publishes([$configPath => $this->getConfigPath()], 'config');
6872

0 commit comments

Comments
 (0)