Skip to content

spyrmp/greek-vat-number-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

greek-vat-number-validator

Laravel plugin for validating Greek vat number.

Install

This project can be installed via Composer run the following command:

composer require spyrmp/greek-vat-number-validator

Add the Service Provider & Facade/Alias

Once spyrmp/greek-vat-number-validator is installed, you need to register the service provider in config/app.php. Make sure to add the following line above the RouteServiceProvider.

\Spyrmp\GreekVatNumberValidator\GreekVatNumberValidatorProvider::class,

Publish the package config file by running the following command:

php artisan vendor:publish --provider="Spyrmp\GreekVatNumberValidator\GreekVatNumberValidatorProvider" --tag="greek-vat-number-validator"

##Validation Rules

greek_vat_validator

The field under validation must be a valid greek vat number.

$rule= [
       "field"=>"greek_vat_validator"
];
$inputs = $request->all();
$validation = Validator::make($inputs, $rule);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages