|string> */ public function rules(): array { return [ 'name' => 'required|string|max:100', 'phone' => 'nullable|string|max:20', ]; } /** * Get custom attributes for validator errors. * * @return array */ public function attributes(): array { return [ 'name' => '이름', 'phone' => '연락처', ]; } }