cart desc
This commit is contained in:
parent
74f470d5ef
commit
a3d2e6f0e6
|
|
@ -31,6 +31,7 @@ class CartService
|
||||||
$cartItems = Cart::query()
|
$cartItems = Cart::query()
|
||||||
->with(['sku.product.description'])
|
->with(['sku.product.description'])
|
||||||
->where('customer_id', $customer->id)
|
->where('customer_id', $customer->id)
|
||||||
|
->orderByDesc('id')
|
||||||
->get();
|
->get();
|
||||||
$cartList = CartList::collection($cartItems)->jsonSerialize();
|
$cartList = CartList::collection($cartItems)->jsonSerialize();
|
||||||
return $cartList;
|
return $cartList;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue