diff --git a/src/AgentServiceProvider.php b/src/AgentServiceProvider.php index 015af3e..ceff51c 100644 --- a/src/AgentServiceProvider.php +++ b/src/AgentServiceProvider.php @@ -26,7 +26,7 @@ public function boot() */ public function register() { - $this->app['agent'] = $this->app->share(function ($app) + $this->app->singleton('agent', function ($app) { return new Agent($app['request']->server->all()); });