Package Data | |
---|---|
Maintainer Username: | rap2hpoutre |
Maintainer Contact: | raphaelht@gmail.com (rap2hpoutre) |
Package Create Date: | 2016-06-03 |
Package Last Update: | 2020-10-27 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-14 15:07:21 |
Package Statistics | |
---|---|
Total Downloads: | 123,908 |
Monthly Downloads: | 571 |
Daily Downloads: | 13 |
Total Stars: | 21 |
Total Watchers: | 5 |
Total Forks: | 13 |
Total Open Issues: | 1 |
Adds some minimal validation rules for credit card.
Install via composer
composer require rap2hpoutre/laravel-credit-card-validator
Add Service Provider to config/app.php
in providers
section
Rap2hpoutre\LaravelCreditCardValidator\ServiceProvider::class,
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',
]);