Rules.php 294 B

1234567891011121314151617181920
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. class Rules extends Validate{
  5. protected $rule = [
  6. 'name|名称' => 'require|length:1,20',
  7. ];
  8. protected $message = [
  9. 'name.length' => '名称必须20字以内',
  10. ];
  11. protected $scene = [
  12. ];
  13. }