Skip to content

repat/laravel-validator-nric-fin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-validator-nric-fin

Latest Version on Packagist Total Downloads

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

Version

  • Version 0.5

Contact

repat

Flattr this git repo

About

Laravel Validator for Singapore NRIC / FIN

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages