thiagoprz / cnpj-validator
A Laravel package to work with CNPJ validation.
0.0.2
2020-09-22 20:27 UTC
Requires
- php: ^7.1.3
- illuminate/support: ^5.5 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- orchestra/testbench: ^3.8
- phpunit/phpunit: ^8.3@dev
This package is auto-updated.
Last update: 2024-12-23 06:18:10 UTC
README
A Laravel package to work with CNPJ validation.
CNPJ is the National Reistry of Legal Entities in Brazil.
Installation
composer install thiagoprz/cnpj-validator
Usage
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class CnpjController extends Controller
{
...
/**
* Store action
*/
public function store(Request $request)
{
$this->validate($request, [
'cnpj' => 'cnpj', // CNPJ validation
...
]);
...
}
...
}