<?php
namespace app\validate;

use think\Validate;

class Slide extends Validate
{
    protected $rule = [
        'title' => 'require',
        'url' => 'url',
    ];
    protected $message = [
        'title.require' => '标题必须',
        'url.url' => '请填写有效的网址,以http://或https://开头'
    ];
}