<?php namespace app\admin\validate; use think\Validate; class Uploads extends Validate { protected $rule = [ 'link' => 'require', ]; protected $message = [ ]; protected $scene = [ 'delete' => ['link'] ]; }