Input

Valid Longitude

Rule `valid_longitude`: Validates longitude coordinate.

Usage

Use for geolocation.

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

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

Stable rule name

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

Group

Format