laravelshoppingcart icon indicating copy to clipboard operation
laravelshoppingcart copied to clipboard

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

Open Mujeeb989 opened this issue 3 years ago • 5 comments

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

Mujeeb989 avatar Mar 28 '21 17:03 Mujeeb989

a similar situation.

Tmoiseenko avatar Mar 31 '21 16:03 Tmoiseenko

same issue

julles avatar Jun 13 '21 18:06 julles

same issue

behzodjon avatar Mar 30 '22 07:03 behzodjon

Did anyone found a solution for this?

ignacio-dev avatar Feb 20 '23 20:02 ignacio-dev

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

AlexProfffi avatar Apr 20 '23 18:04 AlexProfffi