This commit is contained in:
2025-12-08 19:48:53 +05:00
parent 1cdabc9b8f
commit 6f5eb0d776

View File

@@ -16,7 +16,7 @@ class CartController extends Controller
public function index(): JsonResponse public function index(): JsonResponse
{ {
$cartItems = auth()->user()->carts() $cartItems = auth()->user()->carts()
->with(['product' => ['media', 'brand']]) ->with(['product' => ['media', 'brand', 'channels']])
->orderBy('cart_items.id', 'desc') ->orderBy('cart_items.id', 'desc')
->get() ->get()
->each(function ($cartItem) { ->each(function ($cartItem) {