多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# 验证 ## 代码 ``` <?php namespace app\agent\validate; use think\Validate; class RoleValidate extends Validate { protected $rule = [ 'name' => 'require', ]; protected $message = [ 'name.require' => '角色名称不能为空', ]; protected $scene = [ 'add' => ['name'], ]; } ```