Gestión Constructora
 
Loading...
Searching...
No Matches
App\Rules\validCifNieDni Class Reference
Inheritance diagram for App\Rules\validCifNieDni:

Public Member Functions

 validate (string $attribute, mixed $value, Closure $fail)
 

Private Member Functions

 validDniCifNie ($dni)
 

Member Function Documentation

◆ validate()

App\Rules\validCifNieDni::validate ( string $attribute,
mixed $value,
Closure $fail )

Run the validation rule.

Parameters
string$attribute
mixed$value
\Closure$fail
Returns
void

◆ validDniCifNie()

App\Rules\validCifNieDni::validDniCifNie ( $dni)
private

Valida un DNI (NIF), CIF o NIE.

Parameters
string$dniNúmero de identificación.
Returns
bool True si es válido, false en caso contrario.

The documentation for this class was generated from the following file: