"require|chsAlphaNum|length:2,255", "subtitle"=>"require|length:2,255", "detail_img"=>"require" ]; protected $message =[ 'title.require'=>'标题不能为空', 'title.chsAlphaNum'=>'标题只能是汉字、字母和数字', 'title.length'=>'标题长度只能在2-255之间', 'subtitle.require'=>'副标题不能为空', 'subtitle.length'=>'副标题长度只能在2-255之间', 'detail_img.require'=>'详情图片不能为空' ]; }