PaperValidator.php 748 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Repositories\Validators\Exam;
  3. use \Prettus\Validator\Contracts\ValidatorInterface;
  4. use \Prettus\Validator\LaravelValidator;
  5. /**
  6. * Class PaperValidator.
  7. *
  8. * @package namespace App\Repositories\Validators\Exam;
  9. */
  10. class PaperValidator extends LaravelValidator
  11. {
  12. /**
  13. * Validation Rules
  14. *
  15. * @var array
  16. */
  17. protected $rules = [
  18. ValidatorInterface::RULE_CREATE => [
  19. 'name' => 'required',
  20. // 'task_id' => 'required|integer',
  21. // 'topics' => 'required|array',
  22. ],
  23. ValidatorInterface::RULE_UPDATE => [
  24. 'name' => 'required',
  25. // 'task_id' => 'required|integer',
  26. // 'topics' => 'required|array',
  27. ],
  28. ];
  29. }