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
laravel-validation-rules/credit-card
Validate credit card number, expiration date, cvc
2,620,839
245
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.5 | >=7.4 | ^6.0| | MIT | |
| 0.4 | >=7.4 | ^6.0| | MIT | |
| 0.3 | >=7.4 | ^6.0| | MIT | |
| 0.2 | >=7.4 | ^6.0| | MIT | |
| 0.1 | >=7.4 | ^6.0| | MIT |
