1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace App\Repositories\Validators\Exam;
- use \Prettus\Validator\Contracts\ValidatorInterface;
- use \Prettus\Validator\LaravelValidator;
- /**
- * Class PaperValidator.
- *
- * @package namespace App\Repositories\Validators\Exam;
- */
- class PaperValidator extends LaravelValidator
- {
- /**
- * Validation Rules
- *
- * @var array
- */
- protected $rules = [
- ValidatorInterface::RULE_CREATE => [
- 'name' => 'required',
- // 'task_id' => 'required|integer',
- // 'topics' => 'required|array',
- ],
- ValidatorInterface::RULE_UPDATE => [
- 'name' => 'required',
- // 'task_id' => 'required|integer',
- // 'topics' => 'required|array',
- ],
- ];
- }
|