mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-22 07:05:23 +00:00
Replaced deprecated OR operator https://getcomposer.org/doc/articles/versions.md#version-range
Added 5.8.* compatibility Updated dependency versions Added phpunit result cache to gitignore
This commit is contained in:
10
src/Cart.php
10
src/Cart.php
@@ -149,7 +149,7 @@ class Cart
|
||||
|
||||
$content->put($item->rowId, $item);
|
||||
|
||||
$this->events->fire('cart.added', $item);
|
||||
$this->events->dispatch('cart.added', $item);
|
||||
|
||||
$this->session->put($this->instance, $content);
|
||||
|
||||
@@ -195,7 +195,7 @@ class Cart
|
||||
$content->put($cartItem->rowId, $cartItem);
|
||||
}
|
||||
|
||||
$this->events->fire('cart.updated', $cartItem);
|
||||
$this->events->dispatch('cart.updated', $cartItem);
|
||||
|
||||
$this->session->put($this->instance, $content);
|
||||
|
||||
@@ -217,7 +217,7 @@ class Cart
|
||||
|
||||
$content->pull($cartItem->rowId);
|
||||
|
||||
$this->events->fire('cart.removed', $cartItem);
|
||||
$this->events->dispatch('cart.removed', $cartItem);
|
||||
|
||||
$this->session->put($this->instance, $content);
|
||||
}
|
||||
@@ -582,7 +582,7 @@ class Cart
|
||||
'content' => serialize($content),
|
||||
]);
|
||||
|
||||
$this->events->fire('cart.stored');
|
||||
$this->events->dispatch('cart.stored');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -617,7 +617,7 @@ class Cart
|
||||
$content->put($cartItem->rowId, $cartItem);
|
||||
}
|
||||
|
||||
$this->events->fire('cart.restored');
|
||||
$this->events->dispatch('cart.restored');
|
||||
|
||||
$this->session->put($this->instance, $content);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user