Input

Decimal

Rule `decimal`: Value must be a decimal number.

Usage

Use for decimal amounts.

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

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

Stable rule name

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

Group

Numeric