Crinsane / LaravelShoppingcart

A simple shopping cart implementation for Laravel
MIT License
3.67k stars 1.73k forks source link

Use this package in API #517

Open abdolrhman opened 6 years ago

abdolrhman commented 6 years ago

Hello good people , am building apis for mobile team , so i want to build a cart , i have product category tables , Is it possible to use this package in APIs ??

thanks guys in advance .

FutureFutureTo commented 6 years ago

I assume you mean in a stateless way? Yes you can

You can store the cart associated with userId and retrieve it.

Look at the ::store and ::restore methods.

I've been using this package with a few tweaks here and there for both my web eCommerce and iOS apis

abdolrhman commented 6 years ago

bro can u please copy and paste some of the action methods for consuming such package for APIs please @FutureFutureTo , thanks in advance .

hsali commented 5 years ago

I assume you mean in a stateless way? Yes you can

You can store the cart associated with userId and retrieve it.

Look at the ::store and ::restore methods.

I've been using this package with a few tweaks here and there for both my web eCommerce and iOS apis

in what way you are tweaking.

hsali commented 5 years ago

I forked this as new project and changes this package to use as for API with passport.
You can visit this https://packagist.org/packages/hsali/shoppingcart_api