feat: streamline lambda function syntax and enhance readability in RestockService
This commit is contained in:
parent
fe0c565196
commit
1fc058f974
@ -68,6 +68,7 @@ public function getForCreate(): array
|
|||||||
'productVariants:id,product_id,name,stock,reject_stock',
|
'productVariants:id,product_id,name,stock,reject_stock',
|
||||||
'productVariants.productPrices:id,variant_id,type,price',
|
'productVariants.productPrices:id,variant_id,type,price',
|
||||||
])
|
])
|
||||||
|
->active()
|
||||||
->orderBy('name')
|
->orderBy('name')
|
||||||
->get()
|
->get()
|
||||||
->each(function (Product $product) {
|
->each(function (Product $product) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user