LaravelPackages.net
Acme Inc.
Toggle sidebar
martinrichard/laravel-credit-card-validator

Laravel credit card validator 2 from rap2hpoutre

654
0
0.0.7
About martinrichard/laravel-credit-card-validator

martinrichard/laravel-credit-card-validator is a Laravel package for laravel credit card validator 2 from rap2hpoutre. It currently has 0 GitHub stars and 654 downloads on Packagist (latest version 0.0.7). Install it with composer require martinrichard/laravel-credit-card-validator. Discover more Laravel packages by martinrichard or browse all Laravel packages to compare alternatives.

Last updated

Laravel Credit Card Validator

Packagist Software License Build Status Quality Score SensioLabsInsight

Adds some minimal validation rules for credit card.

Install

Install via composer

composer require rap2hpoutre/laravel-credit-card-validator

Add Service Provider to config/app.php in providers section

Rap2hpoutre\LaravelCreditCardValidator\ServiceProvider::class,

Usage

Add this to your validation rules:

// Add this in your controller method
$this->validate($request, [
    'credit-card-number' => 'required|ccn',
    'credit-card-date' => 'required|ccd',
    'credit-validation-code' => 'required|cvc',
]);

Star History Chart