Input

Matches

Rule `matches`: Value must match another field.

Usage

Useful for confirmation fields.

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

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

Stable rule name

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

Group

Required / Conditional