I am using Laravel 11 and I need a shopping cart package that works with Laravel 11 and is supported by Laravel 11. I have searched, but I couldn't find any package. If you know of any package that supports Laravel 11, please let me know.
From what I've seen, many shopping cart packages are semi-abandoned.
And I would say the reason is they don't provide much more functionality than you would achieve yourself by saving the Cart data either in the Session or in the Database.
So I would advise to build those Cart::add() methods yourself, with your specific functionality, it will also allow you to be in full control.
@kenplayable Hello, I am currently using but the declaration seems different when I use use Gloudemans\Shoppingcart\Cart;. Then Cart::add('293ad', 'Product 1', 1, 9.99); does not cause an error. However, if I use use Gloudemans\Shoppingcart\Facades\Cart, it reports an error with ::add. So what is the correct declaration for it?
@codedevloper13
I had a client that needed a cart in there app a couple of years ago, and I used this as a guide to build my own cart using livewire/laravel, saving the Cart data in a session. It does use livewire, but you could adapt it to only use laravel if you wanted.
Take a shot a building your own and that will be one less package to depend on.