Hi developers,
In my project I need save orders. There are lots of fields, I need if browser has been closed, info are saved for next time order will be opened.
I'd like to use Laravel session + jquery: is jQuery an old tecnology to use?
I've used Laravel in another project but this is the first time I need something like a "real time" saving data.
Thanks in advance
As for what I assume is a shopping basket. Just send ajax requests to laravel when the customer adds something to the basked, and let laravel handle all the session stuff
@acupofocode I assume you just want to save a session with a list of product_ids paired with a count. For that the above answer sound be fine :) Just send product_id + count using ajax and update the session.
@acupofocode But the user has no log in to remember that stuff? Sounds like a system where the customer would create an account if they want to have that stuff remembered from visit to visit.
@acupofocode I would say, give it a try. It is really great for alot of thing, but your knowledge will also be quite specific (jQuery is more generic).
@Snapey this project must be used on desktop and tablet. Not smartphone because of data quantities. I thought to laravel livewire..
I'm comfortable with javascript but I'm very confused with the amount of data must be handled..
@acupofocode My point was, if you save to local storage then it is stored on the device, and can only be retrieved on that device, wheras if you store on the server then it can be retrieved by the user from any device.