hardevine / LaravelShoppingcart

A simple shopping cart implementation for Laravel
MIT License
348 stars 121 forks source link

Is there any functionality to get every ones cart. As its store in session. #31

Closed abdulrehmandar2234 closed 3 years ago

abdulrehmandar2234 commented 3 years ago

I want to get every single cart store from different browsers. is it possible.

hardevine commented 3 years ago

kindly explain with some example

abdulrehmandar2234 commented 3 years ago

I need to add a functionality to display favorite products in my website. the logic for this is to display all the cart and wishlist's content. means display the cart and wishlist of every user for guest on my website. because this pkg don't store cart or wishlist in database. I can't use Cart::all(); do you have any solution. or i have to store every cart and wishlist in db as well when storing it using session(this package).

hardevine commented 3 years ago

https://github.com/hardevine/LaravelShoppingcart#database

abdulrehmandar2234 commented 3 years ago

Thank you I haven't read the full Docs. Another error I'm facing is when I delete cart using this method its give me error The DELETE method is not supported for this route. Supported methods: GET, HEAD, POST. This is the laravel error but may be coming from the package. Do you have any solution.

form action="{{route('cart.destroy',$cart->rowId)}}" method="POST" @csrf @method('DELETE')

form