You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cart::instance('sample')->add($items);
Works as expected when called the first time.
If an attempt is made to add additional items to the cart instance,
only the latest item is added, previous items are erased.
Cart::add($items) which represents the 'default ' cart instance works
as expected and does not erase previous cart items.
Not sure if I am doing something wrong.
Additionally, is there a way to get all cart items or count all count
items without setting a specific instance. i.e. count/get everything in
the cart (all instances).
The text was updated successfully, but these errors were encountered:
Hello.
Cart::instance('sample')->add($items);
Works as expected when called the first time.
If an attempt is made to add additional items to the cart instance,
only the latest item is added, previous items are erased.
Cart::add($items) which represents the 'default ' cart instance works
as expected and does not erase previous cart items.
Not sure if I am doing something wrong.
Additionally, is there a way to get all cart items or count all count
items without setting a specific instance. i.e. count/get everything in
the cart (all instances).
The text was updated successfully, but these errors were encountered: