Geen omschrijving
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AuthRule.php 909B

123456789101112131415161718192021222324252627
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Yzncms [ 御宅男工作室 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2007 http://yzncms.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: 御宅男 <530765310@qq.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\admin\validate;
  12. use think\Validate;
  13. /**
  14. * 菜单验证器
  15. */
  16. class AuthRule extends Validate
  17. {
  18. //定义验证规则
  19. protected $rule = [
  20. 'parentid|上级菜单' => 'require|number',
  21. 'name|规则' => 'require|unique:AuthRule',
  22. 'title|标题' => 'require',
  23. ];
  24. }