|string> */ public function rules(): array { return [ 'adjustments' => ['nullable', 'array'], 'adjustments.*.amount' => ['required', 'integer', 'min:0'], 'adjustments.*.type' => ['required', 'string', Rule::in(SalaryAdjustmentType::cases())], 'adjustments.*.description' => ['required', 'string', 'max:100'], ]; } }