Input

Alpha Dash

Rule `alpha_dash`: Letters, numbers, underscore and dash.

Usage

Use for slugs/keys.

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

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

Stable rule name

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

Group

Format