requiredWithAll

Ensures the field is required when all other fields have non-empty values.

const rules = {
  tax_id: 'required_with_all:car,house'
}

// or
const rules = {
  tax_id: [
    rule('required_with_all', ['car', 'house'])
  ]
}

For customized build, you can import this rule as follows.

import { requiredWithAll } from 'indicative/builds/validations'