laravelshoppingcart icon indicating copy to clipboard operation
laravelshoppingcart copied to clipboard

API Version of ends

Open rajibbrunel opened this issue 2 years ago • 3 comments

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

rajibbrunel avatar Jun 01 '22 11:06 rajibbrunel

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

HuyPham55 avatar Jun 13 '22 04:06 HuyPham55

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 avatar Jun 13 '22 05:06 rajibbrunel

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: @.***>

rajibbrunel avatar Jun 13 '22 05:06 rajibbrunel