Littlegolden The full validation array for UserValidator.php would look like:
return [
'username' => [
'required',
'alpha_dash',
'unique:users,username'.$idSuffix,
'min:3',
'max:30'
],
'email' => [
'required',
'email',
'unique:users,email'.$idSuffix
],
'password' => [
'required',
'min:8'
]
];
You'll not that regex is completely gone. These validation rules were tested in a PHP 7.2 environment. And I tested multiple character types including Chinese, Korean and Japanese characters.
Also after making changes make sure to clear cache.