Socket
Socket
Sign inDemoInstall

laravel-cuit-validation-rule

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    laravel-cuit-validation-rule

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


Version published
Maintainers
1
Install size
4.99 kB
Created

Readme

Source

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;

Keywords

FAQs

Last updated on 05 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc