Code Monkey home page Code Monkey logo

laravel-cuit-validation-rule's Introduction

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;

laravel-cuit-validation-rule's People

Contributors

matiasperrone avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

laravel-cuit-validation-rule's Issues

error al validar

[2021-07-06 19:17:09] local.ERROR: Class GlobalInnovation\Validation\Rules\CUIT contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Contracts\Validation\Rule::passes) {"userId":2,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Class GlobalInnovation\Validation\Rules\CUIT contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Contracts\Validation\Rule::passes) at .../vendor/globalinnovation/laravel-cuit-validation-rule/src/CUIT.php:7)
[stacktrace]
#0 {main}
"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.