const rules = {
zipcode: 'required_without_all:address,state'
}
// or
const rules = {
zipcode: [
rule('required_without_all', ['address', 'state'])
]
}
Ensures the field is required when all of the other fields has empty values.
const rules = {
zipcode: 'required_without_all:address,state'
}
// or
const rules = {
zipcode: [
rule('required_without_all', ['address', 'state'])
]
}
For customized build, you can import this rule as follows.
import { requiredWithoutAll } from 'indicative/builds/validations'