Well, it's kinda easy, I have a website, a client can add an article into the cart.
When he add it, the "stock" is directly reduced in the DB, and when he manually remove it from the cart, the article is added back into the DB. (Just talking about the stock that's available for the article).
Now the problem, it's that the library that I use for my cart (https://github.com/Crinsane/LaravelShoppingcart), add the cart articles in the default session of laravel, and the default session lifetime (for Laravel) is 60 minutes, then the session is automatically erased and I can't update my DB with the correct quantity. (the articles are just lost in the void ;( ).
Sorry, never used the package myself and no idea what is it doing. I will try to look at the package, and explore how it handles expired session ... but as of now don't know ...
Yeah but the problem is that the owner of the website, want that the article is "reserved" just when he add it into the cart, so I must do something like that.
Hey @maddox wondering if you ever figured this one out. I am having some issues with the same thing now and trying to figure out the best solution for it.