Input

Valid Phone

Rule `valid_phone`: Validates phone number format.

Usage

Use for generic phone fields.

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

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

Stable rule name

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

Group

Format