laravel-cuit-validation-rule

1.3.2 • Public • Published

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;

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.2
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.2
    3
  • 1.3.1
    0
  • 1.0.2
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i laravel-cuit-validation-rule

Weekly Downloads

3

Version

1.3.2

License

MIT

Unpacked Size

5.11 kB

Total Files

7

Last publish

Collaborators

  • matias.perrone