'required|string|max:100', 'level_id' => 'required|integer|exists:customer_level,id', 'contact' => 'nullable|string|max:50', 'phone' => 'nullable|string|max:20', 'address' => 'nullable|string|max:255', 'payment_cycle_days' => 'nullable|integer|min:0', 'status' => 'nullable|integer|in:0,1', 'remark' => 'nullable|string|max:255', ]; } public function messages(): array { return [ 'name.required' => '门店名称不能为空', 'name.max' => '门店名称最长 100 个字符', 'level_id.required' => '请选择客户等级', 'level_id.exists' => '客户等级不存在', 'payment_cycle_days.integer' => '回款周期必须为整数', 'payment_cycle_days.min' => '回款周期不能小于 0', 'status.in' => '状态值不正确', ]; } }