Comments (4)
resources/lang/{YOUR_LANGUAGE}/validation.php
Just add this:
'credit_card' => [
'card_invalid' => '1',
'card_pattern_invalid' => '2',
'card_length_invalid' => '3',
'card_checksum_invalid' => '4',
'card_expiration_year_invalid' => '5',
'card_expiration_month_invalid' => '6',
'card_expiration_date_invalid' => '7',
'card_expiration_date_format_invalid' => '8',
'card_cvc_invalid' => '9',
],
from credit-card.
You just can add a translation for your new message
from credit-card.
Maybe is it better to add translations to the package?
from credit-card.
add this code into any of your service provider boot method
Validator::replacer('cs_captcha_validate', function($message, $attribute, $rule, $parameters) {
return sprintf('Recaptcha Invalid', $attribute);
});
here cs_captcha_validate is the input field
from credit-card.
Related Issues (20)
- How to customize validation message from Form Request ? HOT 2
- Added new cards HOT 1
- Problems validating the month
- Card Number Validator is not working
- Hipercard not work HOT 2
- wrong rules for validation
- Laravel 6.0 HOT 3
- Add laravel 7 support HOT 1
- Custom message without translation HOT 2
- How to validate an flag?
- please add php 8 support HOT 2
- PHP8 support HOT 1
- ELO mais brand cvv invalid HOT 1
- There is no way to set `MM/YY` format for CardExpirationDate HOT 3
- There is no way to set message of new CardExpirationDate('m/y') class
- Custom Message HOT 2
- [Welling To Contribute] Laravel 10 support HOT 1
- JCB card is not validate HOT 7
- How can get card brand? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from credit-card.