'require|number', 'amount'=>'require', 'operatetype'=>'require', ]; protected $message = [ 'store_id.require'=>'请输入店主用户名', 'store_id.number'=>'店主信息错误', 'amount.require'=>'请添加金额', 'operatetype.require'=>'请输入增减类型', ]; protected $scene = [ 'adjust' => ['store_id', 'amount','operatetype'], ]; }