Skip to content

Commit a8063ee

Browse files
authored
Merge pull request #82 from frezno/master
Changing share to singleton -> for Laravel 5.4 support
2 parents d8f33c3 + 7540f67 commit a8063ee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
],
1212
"require": {
1313
"php": ">=5.4.0",
14-
"illuminate/support": "5.0.*|5.1.*|5.2.*|5.3.*",
15-
"illuminate/validation": "5.0.*|5.1.*|5.2.*|5.3.*",
16-
"illuminate/translation": "5.0.*|5.1.*|5.2.*|5.3.*"
14+
"illuminate/support": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*",
15+
"illuminate/validation": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*",
16+
"illuminate/translation": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*"
1717
},
1818
"require-dev": {
1919
"mockery/mockery": "~0.9",

src/Darryldecode/Cart/CartServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function register()
3232
{
3333
$this->mergeConfigFrom(__DIR__.'/config/config.php', 'shopping_cart');
3434

35-
$this->app['cart'] = $this->app->share(function($app)
35+
$this->app->singleton('cart', function($app)
3636
{
3737
$storage = $app['session'];
3838
$events = $app['events'];

0 commit comments

Comments
 (0)