darryldecode / laravelshoppingcart

Shopping Cart Implementation for Laravel Framework
1.32k stars 413 forks source link

API Version of ends #339

Open rajibbrunel opened 2 years ago

rajibbrunel commented 2 years ago

HI I think it is necessary to have api end for the cart. I am using database storage. In that case how I can call and retrieve cart details or add /edit /details along with the cart summary. If not provided i need to create a custom cart. it is necessary to consider mobile applications. Consider an eCommerce business who have both mobile apps and an eCommerce website. if the user added an item in web site it will be not available on apps if we do not use the database. and api is essential to build the cart in mobile

HuyPham55 commented 2 years ago

If we do not use database to store user's shopping cart, what do you think we could use to store it?

rajibbrunel commented 2 years ago

if you do not use the database default system will handle this. It is a session I guess as per the document. But database/ cloud file will be the best solution because for instance for an application there could be 2 ends mobile and desktop. If you add an item to the cart on a mobile /different device it will be not available on another device. Creator of this project may generate api end for this app with backend but it could cost him

rajibbrunel commented 2 years ago

My DB based  RepoOpenSource / Scm · GitLab

|

OpenSource / Scm · GitLab

Right now this project solved login and registration issue of laravel 9 using breeze . Next i will try passport. |

|

|

Sincerely

Rajib Chowdhury 

+88 01776220433

stackoverflow Linkedin

On Monday, 13 June 2022, 10:12:35 GMT+6, Phạm Đức Huy ***@***.***> wrote:  

If we do not use database to store user's shopping cart, what do you think we could use to store it?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>