<?php
namespace app\validate;

use think\Validate;

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