CinemaPerformersValidate.php 678 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\admin\validate\life;
  3. use support\Validate;
  4. class CinemaPerformersValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'performers_name|姓名' => 'require',
  8. 'performers_img|照片' => 'url',
  9. 'performers_type|类型' => 'require|in:1,2',
  10. // 'performers_introduction|简介' => 'chsDash',
  11. 'performers_is_del' => 'in:0,1'
  12. ];
  13. protected $message = [];
  14. protected $scene = [
  15. 'add' => ['performers_name', 'performers_img', 'performers_type', 'performers_introduction'],
  16. 'update' => ['performers_name', 'performers_img', 'performers_type', 'performers_introduction', 'performers_is_del']
  17. ];
  18. }