['required', 'min:3', 'max:20', 'regex:/^[0-9A-Za-z\-\_]+$/', 'unique:users,name,' . Auth::id() ], 'email' => ['required', 'unique:users,email,' . Auth::id()], 'introduction' => 'nullable|max:255', 'avatar' => 'image|nullable', ]; } public function attributes() { return [ 'introduction' => '简介', ]; } }