repat/laravel-validator-nric-fin
laravel-validator-nric-fin
laravel-validator-nric-fin is a custom Rule Object / Validator for Laravel that validates the National Registration Identity Card (NRIC) and Foreign Identification Number (FIN) of Singapore.
Installation
$ composer require repat/laravel-validator-nric-fin
Documentation
use Illuminate\Http\Request;
use Repat\LaravelRules\NricFin;
// ...
public function controllerMethod(Request $request) {
$request->validate([
'nric' => new NricFin,
]);
//
}
Tests
vendor/bin/phpunit
License
- MIT, see LICENSE
Version
- Version 0.5
Contact
repat
- Homepage: https://repat.de
- e-mail: repat@repat.de
- Twitter: @repat123
Related Packages
stuyam/laravel-phone-validator
A phone validator for Laravel using the free Twilio phone lookup service.
62,649
28
ellisio/laravel-phone
A phone validator for Laravel using the free Twilio phone lookup service.
29,983
11
proengsoft/laravel-jsvalidation
Validate forms transparently with Javascript reusing your Laravel Validation Rul...
2,465,214
1,140
hamedmehryar/laravel-kickbox-validator
A kickbox email validator for form requests in laravel (forked from 'stayum')
62
1
