diff --git a/app/Rules/Username.php b/app/Rules/Username.php index b89184e9ab..cc869b9312 100644 --- a/app/Rules/Username.php +++ b/app/Rules/Username.php @@ -30,8 +30,7 @@ public function passes($attribute, $value): bool */ public function message(): string { - return 'The :attribute must start and end with alpha-numeric characters and - contain only letters, numbers, dashes, underscores, and periods.'; + return ':attribute 只能以字母或数字开头和结尾,且只能包含字母、数字、破折号、下划线和英文句号。'; } /**