From ff064f13a1e5498f10b2f6443782579688572259 Mon Sep 17 00:00:00 2001 From: Ron Oerlemans Date: Fri, 28 Jun 2024 20:34:06 +0200 Subject: [PATCH] Swap error messages Exist and Format --- src/Rules/VatNumberExist.php | 2 +- src/Rules/VatNumberFormat.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rules/VatNumberExist.php b/src/Rules/VatNumberExist.php index 9ebbdb9..e22fb33 100755 --- a/src/Rules/VatNumberExist.php +++ b/src/Rules/VatNumberExist.php @@ -11,7 +11,7 @@ class VatNumberExist implements ValidationRule public function validate(string $attribute, mixed $value, Closure $fail): void { if (! VatValidator::validateExistence($value)) { - $fail(__('The :attribute must be write in a valid number format {country_name}{vat_number}.')); + $fail(__('VAT number :attribute not exist.')); } } } diff --git a/src/Rules/VatNumberFormat.php b/src/Rules/VatNumberFormat.php index 9c43e3f..221207e 100755 --- a/src/Rules/VatNumberFormat.php +++ b/src/Rules/VatNumberFormat.php @@ -10,7 +10,7 @@ class VatNumberFormat implements ValidationRule public function validate(string $attribute, mixed $value, \Closure $fail): void { if (! VatValidator::validateFormat($value)) { - $fail(__('VAT number :attribute not exist.')); + $fail(__('The :attribute must be write in a valid number format {country_name}{vat_number}.')); } } }