feat: update product resource and seeder to support variant groups and remove unused fields
This commit is contained in:
@@ -273,6 +273,7 @@ class ProductService
|
||||
}
|
||||
|
||||
$product->setRelation('attachments', $resolvedAttachment ? collect([$resolvedAttachment]) : collect());
|
||||
$product->unsetRelation('variants');
|
||||
}
|
||||
|
||||
return $products;
|
||||
|
||||
Reference in New Issue
Block a user