Package Data | |
---|---|
Maintainer Username: | chendujin |
Maintainer Contact: | thomas.chen.jobs@gmail.com (chendujin) |
Package Create Date: | 2023-06-28 |
Package Last Update: | 2023-06-28 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 03:00:10 |
Package Statistics | |
---|---|
Total Downloads: | 23 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 0 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Adds some minimal validation rules for credit card.
Install via composer
composer require chendujin/credit-card-verify
Register Service Provider bootstrap/app.php
$app->register(Chendujin\CreditCardVerify\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',
]);