Merkez validations
This commit is contained in:
1 parent
af9afd5113
commit
5b32575929
6 files changed
+72
-41
No files matched your search
@@ -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'));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user