Input

Greater Than

Rule `greater_than`: Value must be greater than parameter.

Usage

Use for lower bounds.

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

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

Stable rule name

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

Group

Numeric