Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2019-07-19 (11 days ago)  | | Not yet rated by the users | | Total: 1 This week: 1 | | All time: 9,664 This week: 224 |
|
Description | | Author |
This package is specific mainly for applications used in Brazil  .
This package can be used to validate Brazilian tax payer numbers with Laravel.
It provides one class that can validate a Brazilian tax payer numbers by performing a calculation that is verified against check digits.
The package also provides a Laravel service provide class, so the validation process can be integrated in Laravel applications. | |
 |
|
Innovation award
 Nominee: 2x |
|
Details
CPF Validator
A Laravel package to work with CPF validation.
CPF is an individual taxpayer identification number given to people living in Brazil, both native Brazilians and resident foreigners.
Installation
` composer install thiagoprz/cpf-validator
`
Usage
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class CpfController extends Controller
{
...
/
* Store action
*/
public function store(Request $request)
{
$this->validate($request, [
'cpf' => 'cpf', // CPF validation
...
]);
...
}
...
}
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.