From cdb867952f1466c78ed82479b92bee3c26cd1d18 Mon Sep 17 00:00:00 2001 From: enricodelazzari Date: Mon, 29 Sep 2025 09:28:37 +0200 Subject: [PATCH] FIX validation massages --- src/Rules/ExistsEncrypted.php | 2 +- src/Rules/UniqueEncrypted.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rules/ExistsEncrypted.php b/src/Rules/ExistsEncrypted.php index a98a0db..895e86f 100644 --- a/src/Rules/ExistsEncrypted.php +++ b/src/Rules/ExistsEncrypted.php @@ -40,6 +40,6 @@ public function passes($attribute, $value): bool public function message(): string { - return 'The selected :attribute is invalid.'; + return __('validation.exists'); } } diff --git a/src/Rules/UniqueEncrypted.php b/src/Rules/UniqueEncrypted.php index 5fdd027..35f888a 100644 --- a/src/Rules/UniqueEncrypted.php +++ b/src/Rules/UniqueEncrypted.php @@ -40,6 +40,6 @@ public function passes($attribute, $value): bool public function message(): string { - return 'The :attribute has already been taken.'; + return __('validation.unique'); } }