update composer

This commit is contained in:
nurmuhammet committed 2024-09-07 05:23:12 +05:00
1 parent 701742112b
commit 0404051f7d
5 files changed
+204 -120

No files matched your search

+9 -1
View File
@@ -17,7 +17,15 @@ public function validate(string $attribute, mixed $value, Closure $fail): void
$pattern = "/^[a-zA-Z0-9\s\(\)\"\'\-\žŽäÄňŇöÖşŞüÜçÇýÝ\/,.]+$/u";
if (! preg_match($pattern, $value)) {
$fail(__('Write a correct data please'));
$fail($this->message());
}
}
/**
* Message
*/
public function message(): string
{
return __('Write a correct data please');
}
}