diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index a650bf5e..7beade10 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -26,8 +26,7 @@ public function register() 'DebugBar\DataFormatter\DataFormatterInterface' ); - $this->app['debugbar'] = $this->app->share( - function ($app) { + $this->app->singleton('debugbar', function ($app) { $debugbar = new LaravelDebugbar($app); $sessionManager = $app['session'];