From 1cd21833ded324403e71b297283efad4c4b175bb Mon Sep 17 00:00:00 2001 From: micaelpdias Date: Tue, 10 Jan 2017 11:38:40 +0000 Subject: [PATCH] Fix missing method Share method will be removed as of Laravel 5.4 https://github.com/laravel/framework/commit/1a1969b6e6f793c3b2a479362641487ee9cbf736#diff-52441e04e14c52275cd5d09e8f958981L300 --- src/AgentServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); });