0
0

News.php 331 B

123456789101112131415161718
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. class News extends Validate{
  5. protected $rule = [
  6. 'title|标题' => 'require',
  7. 'img|封面图' => 'require',
  8. 'cate_id|分类' => 'require|gt:0',
  9. 'content|内容' => 'require',
  10. 'source|来源' => 'require',
  11. ];
  12. }