sku_id; $quantity = $request->quantity ?? 1; $sku = ProductSku::query() ->whereRelation('product', 'active', '=', true) ->findOrFail($skuId); $cart = (new CartService)->add($sku, $quantity); return $cart; } }