| 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: | 2025-10-18 15:14:59 |
| Package Statistics | |
|---|---|
| Total Downloads: | 26 |
| Monthly Downloads: | 0 |
| 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',
]);