Skip to content

Commit

Permalink
Update Username.php
Browse files Browse the repository at this point in the history
  • Loading branch information
vlssu authored Mar 6, 2023
1 parent 0f9e396 commit 2dbe6a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Rules/Username.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 只能以字母或数字开头和结尾,且只能包含字母、数字、破折号、下划线和英文句号。';
}

/**
Expand Down

0 comments on commit 2dbe6a0

Please sign in to comment.