Crinsane / LaravelShoppingcart

A simple shopping cart implementation for Laravel
MIT License
3.67k stars 1.73k forks source link

Only able to add 2 items to cart #540

Open tripex opened 5 years ago

tripex commented 5 years ago

I have an issue, Even though I add a unique identificer to the product id, so all products, even if it's the same as already added to the cart, it should have its own row, however, i'm only able to add 2 products?

Cart::add($product['id'].'|'.uniqid(), $product['name'], 1, $product['price'], $attributes);

Is there something wrong with my add?

tetrakiss commented 5 years ago

same issue, @tripex did you find a solution?

tetrakiss commented 5 years ago

my solution change SESSION_DRIVER from cookie to file and php artisan config:clear