Input

Integer

Rule `integer`: Value must be an integer.

Usage

Use for integer-only input.

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

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

Stable rule name

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

Group

Numeric