numberBetween(1, 200); $unitPrice = fake()->numberBetween(1000, 50000); return [ 'restock_id' => Restock::factory(), 'user_id' => User::factory(), 'product_variant_id' => ProductVariant::factory(), 'quantity' => $quantity, 'unit_price' => $unitPrice, 'subtotal' => $quantity * $unitPrice, ]; } }