Commit fe61f12c authored by Nicolas Widart's avatar Nicolas Widart

Load the debugbar service provider only locally

parent 130bda93
......@@ -29,6 +29,10 @@ class AppServiceProvider extends ServiceProvider {
'Illuminate\Contracts\Auth\Registrar',
'App\Services\Registrar'
);
if ($this->app->environment() == 'local') {
$this->app->register('Barryvdh\Debugbar\ServiceProvider');
}
}
}
......@@ -146,7 +146,6 @@ return [
'App\Providers\RouteServiceProvider',
'Cartalyst\Sentry\SentryServiceProvider',
'Barryvdh\Debugbar\ServiceProvider',
'Modules\Core\Providers\AsgardServiceProvider',
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment