Closed styvesamson closed 6 years ago
Just translate validation.credit_card.card_checksum_invalid
like you like.
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
<?php
namespace App\Shop\Checkout\Requests;
use App\Shop\Base\BaseFormRequest; use LVR\CreditCard\CardCvc; use LVR\CreditCard\CardNumber; use LVR\CreditCard\CardExpirationDate;
class CreditCardRequest extends BaseFormRequest { /**
@return array */ public function rules() {
}
/**
@return array */
public function messages()
{
} }