Dont register routes and middleware if we are not in debug mode (#906)
This commit is contained in:
parent
ba046deba5
commit
f78618a0ea
|
@ -63,6 +63,10 @@ class ServiceProvider extends \Illuminate\Support\ServiceProvider
|
|||
*/
|
||||
public function boot()
|
||||
{
|
||||
if (!$this->app['config']->get('app.debug')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$configPath = __DIR__ . '/../config/debugbar.php';
|
||||
$this->publishes([$configPath => $this->getConfigPath()], 'config');
|
||||
|
||||
|
|
Loading…
Reference in New Issue