darryldecode / laravelshoppingcart

Shopping Cart Implementation for Laravel Framework
1.34k stars 438 forks source link

\Cart::getContent() return empty on another function/class #307

Open Mujeeb989 opened 3 years ago

Mujeeb989 commented 3 years ago

after add the items into the cart i want added data in another function /class and when i try to access it with this method \Cart::getContent() the its given empty data

Tmoiseenko commented 3 years ago

a similar situation.

julles commented 3 years ago

same issue

behzodjon commented 2 years ago

same issue

ignacio-dev commented 1 year ago

Did anyone found a solution for this?

AlexProfffi commented 1 year ago

In another file: Cart::session($userId); P.s simplicity is sometimes punishable