AssetCate.php 358 B

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