HouseCType.php 346 B

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