<?php
namespace app\validate;

use think\Validate;

class Slide extends Validate
{
    protected $rule = [
        'title|标题' => 'require',
        'position|位置' => 'require',
        'src|轮播图' => 'require',
    ];

    protected $scene = [
        'slide' => ['title', 'position', 'src'],//轮播图
    ];
}