'required', 'active_time' => 'required', 'place' => 'required', 'audience_crowd' => 'required', 'title' => 'required', 'anchor' => 'required', 'educational_materials' => 'required', 'publicity_board' => 'required', 'member_num' => 'required', 'planned_number' => 'required', 'actual_number' => 'required', 'filling_people' => 'required', 'filling_time' => 'required', 'mode' => 'required', 'declaration_form' => 'required', 'task_book' => 'required', 'final_report' => 'required', 'return_receipt' => 'required', 'ext' => 'required', ]; //自定义验证信息 protected $message = [ 'title.required'=>'标题不能为空', 'activities_type.required'=>'四进类型不能为空', 'active_time.required'=>'活动时间不能为空', 'place.required'=>'活动地点不能为空', 'audience_crowd.required'=>'受众人群不能为空', 'anchor.required'=>'讲者/主持不能为空', 'educational_materials.required'=>'发放宣教材料不能为空', 'publicity_board.required'=>'宣传栏不能为空', 'member_num.required'=>'受宣人次数不能为空', 'planned_number.required'=>'计划人数不能为空', 'actual_number.required'=>'实到人数不能为空', 'filling_people.required'=>'填表人不能为空', 'filling_time.required'=>'填表时间不能为空', 'mode.required'=>'方式不能为空', 'declaration_form.required'=>'申报书不能为空', 'task_book.required'=>'任务书不能为空', 'final_report.required'=>'结题报告书不能为空', 'return_receipt.required'=>'回执单不能为空', ]; //自定义场景 protected $scene = [ FourActivity::TYPE_SCIENCE_POPULARIZATION_BASE =>[ 'title', 'activities_type', 'active_time','place', 'audience_crowd', 'anchor', 'educational_materials', 'publicity_board', 'member_num', 'planned_number', 'actual_number', 'filling_people', 'filling_time', 'mode', ], FourActivity::TYPE_PROMOTION_ACTIVITIES => [ 'title', 'activities_type', 'active_time','place', 'audience_crowd', 'anchor', 'educational_materials', 'publicity_board', 'member_num', 'planned_number', 'actual_number', 'filling_people', 'filling_time', 'mode', ], FourActivity::TYPE_FEATURED_SERVICES => [ 'title', 'declaration_form', 'task_book', 'final_report', ], FourActivity::TYPE_FEATURED_REPORT_RECEIPT => [ 'title', 'return_receipt', ], ]; }