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.productPrices:id,variant_id,type,price',
|
||||
])
|
||||
->active()
|
||||
->orderBy('name')
|
||||
->get()
|
||||
->each(function (Product $product) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user