Input

Required Without

Rule `required_without`: Requires the field when another field is empty.

Usage

Use for fallback/alternative fields.

$schema = \Lemonade\Framework\Validation\ValidationSchema::create()
    ->field('field', 'Field')
        ->requiredWithout('phone')
        ->end();

$result = $validator->validate($payload, $schema);

Stable rule name

required_without for translations, registry lookup and per-rule messages.

Group

Required / Conditional