> */ public function rules(): array { return [ 'account' => ['required', 'string', 'min:2', 'max:64', 'regex:/^[a-zA-Z0-9._-]+$/u'], 'password' => ['required', 'string', 'max:256'], 'captcha_key' => ['required', 'string', 'uuid'], 'captcha_code' => ['required', 'string', 'max:32'], ]; } /** * @return array */ public function attributes(): array { return [ 'account' => 'account', 'password' => 'password', 'captcha_key' => 'captcha_key', 'captcha_code' => 'captcha_code', ]; } }