laravel-iban-validation-rule maintained by faicchia
Description
A Laravel rule around jschaedl/iban-validation
Author
Last update
2022/07/10 00:46
(dev-main)
License
Downloads
886
Laravel Iban Validation Rule
A Laravel rule around jschaedl/iban-validation.
Installation
composer require faicchia/laravel-iban-validation-rule
The package will automatically register itself.
Translations
If you wish to edit the package translations, you can run the following command to publish them into your resources/lang folder:
php artisan vendor:publish --provider="Faicchia\IbanValidation\IbanValidationRuleServiceProvider"
English and Italian translations are already shipped with the package.
Usage
// in a `FormRequest`
use Faicchia\IbanValidation\Rules\Iban;
public function rules(): array
{
return [
'iban' => [new Iban()]
];
}