www.gusucode.com > Aycms自媒体建站系统PHP版 v1.0.1源码程序 > Aycms_v1.0.1/vendor/thinkcmf/cmf-app/src/user/validate/UserArticlesValidate.php
<?php // +---------------------------------------------------------------------- // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ] // +---------------------------------------------------------------------- // | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Author: 小夏 < 449134904@qq.com> // +---------------------------------------------------------------------- namespace app\user\validate; use think\Validate; class UserArticlesValidate extends Validate { protected $rule = [ 'post_title' => 'require', ]; protected $message = [ 'post_title.require' => '文章标题不能为空', ]; protected $scene = [ 'add' => ['post_title'], 'edit' => ['post_title'], ]; }