globalinnovation/laravel-cuit-validation-rule

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

Maintainers

Package info

github.com/global-innovation/laravel-cuit-validation-rule

Homepage

pkg:composer/globalinnovation/laravel-cuit-validation-rule

Statistics

Installs: 32

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

1.4.0 2021-07-07 16:58 UTC

This package is auto-updated.

Last update: 2026-02-08 03:03:15 UTC


README

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;