feat: refactor featured variants to group items, including new controller and resource implementations
This commit is contained in:
@@ -15,7 +15,7 @@ class FeaturedGroupResource extends JsonResource
|
||||
'group_name' => $this->group_name,
|
||||
'product_layout' => $this->product_layout,
|
||||
'group_order' => $this->group_order,
|
||||
'featured_variants' => FeaturedVariantResource::collection($this->whenLoaded('groupItems')),
|
||||
'group_items' => GroupItemResource::collection($this->whenLoaded('groupItems')),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user