From 2fca5af7dc24e24264f8deb9b8d0dc73960b72d4 Mon Sep 17 00:00:00 2001 From: frezno Date: Sun, 5 Feb 2017 17:04:01 +0100 Subject: [PATCH 1/2] Changing share to singleton With Laravel 5.4 the share method has been deprecated and we have to use the singleton method. --- src/Darryldecode/Cart/CartServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Darryldecode/Cart/CartServiceProvider.php b/src/Darryldecode/Cart/CartServiceProvider.php index ed00b32..e689258 100644 --- a/src/Darryldecode/Cart/CartServiceProvider.php +++ b/src/Darryldecode/Cart/CartServiceProvider.php @@ -32,7 +32,7 @@ public function register() { $this->mergeConfigFrom(__DIR__.'/config/config.php', 'shopping_cart'); - $this->app['cart'] = $this->app->share(function($app) + $this->app->singleton('cart', function($app) { $storage = $app['session']; $events = $app['events']; From 7540f6751a20ade2c7f63de15f2c37d2a86bca4f Mon Sep 17 00:00:00 2001 From: frezno Date: Mon, 13 Feb 2017 16:56:22 +0100 Subject: [PATCH 2/2] Add Laravel 5.4.* support --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index e52ded7..63337b2 100644 --- a/composer.json +++ b/composer.json @@ -11,9 +11,9 @@ ], "require": { "php": ">=5.4.0", - "illuminate/support": "5.0.*|5.1.*|5.2.*|5.3.*", - "illuminate/validation": "5.0.*|5.1.*|5.2.*|5.3.*", - "illuminate/translation": "5.0.*|5.1.*|5.2.*|5.3.*" + "illuminate/support": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", + "illuminate/validation": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", + "illuminate/translation": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*" }, "require-dev": { "mockery/mockery": "~0.9",