Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cluel3ss's avatar

Using Cart plugins with Ajax?

I am using https://github.com/Crinsane/LaravelShoppingcart shopping cart package on my project, and I would like to know how could I go about AJAX'ing the actions, I do not want to have to redirect the user when it gets to the end of the controller method, is there a way I can ajax the request? An example would be appreciated.

Many thanks!

0 likes
2 replies
jlrdw's avatar

Haven't used that cart, but wouldn't ajax work the same as in laravel?
Edit I checked the site, careful, there are several issues and pull request.

cluel3ss's avatar

From what I've found on GitHub that package looks like its got the most activity, so I'm assuming its used by many people.

I'm very new to Laravel, is there a tutorial or some resources you can point me to where it can show me how I can interact with something like this package/laravel/ajax?

Please or to participate in this conversation.