management integration start

This commit is contained in:
merdan 2022-06-03 15:41:43 +05:00
parent 7bc2d636cf
commit 67268fbea8
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class ProductVariant extends JsonResource
/* product's checks */
// 'in_stock' => $product->haveSufficientQuantity(1),
'is_item_in_cart' => \Cart::hasProduct($product),
'brand' => $product->brand->name ?? '',
/* special price cases */
$this->merge($this->specialPriceInfo()),
'images' => ProductImage::collection($product->images),