cart desc

This commit is contained in:
Edward Yang 2022-06-29 11:10:34 +08:00
parent 74f470d5ef
commit a3d2e6f0e6
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class CartService
$cartItems = Cart::query()
->with(['sku.product.description'])
->where('customer_id', $customer->id)
->orderByDesc('id')
->get();
$cartList = CartList::collection($cartItems)->jsonSerialize();
return $cartList;