melihovv / laravel-shopping-cart

Laravel shopping cart package
MIT License
73 stars 29 forks source link

Update quantity if item is in cart already #21

Open SirG97 opened 3 years ago

SirG97 commented 3 years ago

Lets say I've called the function below and added item to cart $cartItem = Cart::add($id, $name, $price, $quantity); How do I update this particular item if the function is called again? I'm a bit confused about it. Is the information stored in the session or what?