Skip to content

Commit

Permalink
Dont register routes and middleware if we are not in debug mode (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarampinis authored and barryvdh committed Feb 18, 2019
1 parent ba046de commit f78618a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit f78618a

Please sign in to comment.