mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 07:31:31 +00:00
return row on update
When updating a cartItem it should be returned since updating it might change it’s ID
This commit is contained in:
@@ -116,7 +116,7 @@ class Cart
|
||||
*
|
||||
* @param string $rowId
|
||||
* @param mixed $qty
|
||||
* @return void
|
||||
* @return \Gloudemans\Shoppingcart\CartItem
|
||||
*/
|
||||
public function update($rowId, $qty)
|
||||
{
|
||||
@@ -151,6 +151,8 @@ class Cart
|
||||
$this->events->fire('cart.updated', $cartItem);
|
||||
|
||||
$this->session->put($this->instance, $content);
|
||||
|
||||
return $cartItem;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user