LaravelPackages.net
Acme Inc.
Toggle sidebar
globalinnovation/laravel-cuit-validation-rule

Rule for the validation of the CUIT (Argentina) within Laravel Validator.

32
2
1.4.0
About globalinnovation/laravel-cuit-validation-rule

globalinnovation/laravel-cuit-validation-rule is a Laravel package for rule for the validation of the cuit (argentina) within laravel validator.. It currently has 2 GitHub stars and 32 downloads on Packagist (latest version 1.4.0). Install it with composer require globalinnovation/laravel-cuit-validation-rule. Discover more Laravel packages by globalinnovation or browse all Laravel packages to compare alternatives.

Last updated

Laravel Validator Rule for CUIT

Installation

To install this package include it in your composer.json

composer require globalinnovation/laravel-cuit-validation-rule

Add the following lines to the boot method of the AppServiceProvider class (Check Laravel documentation):

Validator::extend('cuit', 'GlobalInnovation\Validation\Rules\CUIT@validate');
Validator::replacer('cuit', "The CUIT is invalid.");

Remember to add the following line bellow namespace line of the AppServiceProvider class:

use Illuminate\Support\Facades\Validator;

Star History Chart