Merkez validations

This commit is contained in:
nurmuhammet committed 2023-11-28 20:35:01 +05:00
1 parent af9afd5113
commit 5b32575929
6 files changed
+72 -41

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ class OnlyLetters implements ValidationRule
public function validate(string $attribute, mixed $value, Closure $fail): void
{
if (! preg_match('/^([a-zA-Zа-яZžŽäÄňŇöÖşŞüÜçÇýÝ])+$/', $value)) {
$fail('The :attribute field must only contain letters.');
$fail(__('validation.alpha'));
}
}
}