caipan_shop_admin/app/validate/Slide.php

17 lines
323 B
PHP
Executable File

<?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'],//轮播图
];
}