feat: streamline lambda function syntax and enhance readability in RestockService

This commit is contained in:
Yoga Pangestu 2026-08-06 14:01:37 +07:00
parent fe0c565196
commit 1fc058f974

View File

@ -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) {