Back to Validation

Cnh

docs/validators/Cnh.md

3.1.11.4 KB
Original Source
<!-- SPDX-License-Identifier: MIT SPDX-FileCopyrightText: (c) Respect Project Contributors SPDX-FileContributor: Alexandre Gomes Gaigalas <[email protected]> SPDX-FileContributor: Henrique Moody <[email protected]> SPDX-FileContributor: Ville Hukkamäki <[email protected]> SPDX-FileContributor: William Espindola <[email protected]> -->

Cnh

  • Cnh()

Validates a Brazilian driver's license.

php
v::cnh()->assert('02650306461');
// Validation passes successfully

Templates

Cnh::TEMPLATE_STANDARD

ModeTemplate
default{{subject}} must be a CNH
inverted{{subject}} must not be a CNH

Template placeholders

PlaceholderDescription
subjectThe validated input or the custom validator name (if specified).

Categorization

  • Identifications

Changelog

VersionDescription
3.0.0Templates changed
0.5.0Created

See Also