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'); } }