use Luilliarcec\LaravelEcuadorIdentification\Facades\EcuadorIdentification;
EcuadorIdentification::validateNaturalRuc('1710034065001'); // Return null or string code
use Luilliarcec\LaravelEcuadorIdentification\Facades\EcuadorIdentification;
EcuadorIdentification::validateAllTypeIdentification('9999999999999'); // Return '07' => Final Consumer
return [
...
'ecuador' => 'The :attribute field does not have the corresponding country format. (Ecuador)',
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/
'attributes' => [
'id' => 'Ecuadorian Identification',
],
];
return [
...
'ecuador' => 'El campo :attribute no tiene el formato de país correspondiente. (Ecuador)',
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/
'attributes' => [
'id' => 'Identificación Ecuatoriana',
],
];
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.