Input

Is Natural No Zero

Rule `is_natural_no_zero`: Natural number greater than zero.

Usage

Use for positive integers.

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

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

Stable rule name

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

Group

Numeric