12345678910111213141516171819 |
- <?php
- namespace App\Repositories\Validators\Mentor;
- use Prettus\Validator\Contracts\ValidatorInterface;
- use Prettus\Validator\LaravelValidator;
- class GradeValidator extends LaravelValidator
- {
- protected $rules = [
- ValidatorInterface::RULE_CREATE => [
- 'name' => 'required|string|max:100',
- ],
- ValidatorInterface::RULE_UPDATE => [
- 'id' => 'required|integer',
- 'name' => 'required|string|max:100',
- ],
- ];
- }
|