*/ class Banner extends BaseValidate { protected $rule = [ 'id|轮播图' => 'require|number', 'title|标题' => 'require', 'cover|封面图' => 'require', 'cover_url|封面图路径' => 'require', 'sort|排序' => 'require|number', ]; protected $scene = [ 'add' => ['title', 'cover', 'cover_url', 'sort'], 'edit' => ['id', 'title', 'cover', 'cover_url', 'sort'], ]; }