feat: implement FeaturedVariant and CatalogController for managing featured variants and catalog display
This commit is contained in:
@@ -14,7 +14,8 @@ class FeaturedGroupResource extends JsonResource
|
||||
'tenant_codigo' => $this->tenant_codigo,
|
||||
'group_name' => $this->group_name,
|
||||
'product_layout' => $this->product_layout,
|
||||
'featured_products' => FeaturedProductResource::collection($this->whenLoaded('featuredProducts')),
|
||||
'group_order' => $this->group_order,
|
||||
'featured_variants' => FeaturedVariantResource::collection($this->whenLoaded('featuredVariants')),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user