<?php namespace app\common\validate; use think\Validate; class AttendanceGroup extends Validate{ protected $rule = [ 'name|名称' => 'require', ]; }