I have used sessions and cookies to manage cart in laravel application. In laravel API, do I need to use session, cookies for add to cart? or is there any way?
@lianmaymesi Well APIs are usually stateless so no, you won’t be able to use sessions nor cookies. Instead, you’ll need to generate a unique identifier for carts that the client then uses to interact with that cart (add/remove items, check out, etc).