| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | 7 | public function validator(Factory $validationFactory) |
|
| 13 | { |
||
| 14 | 7 | return $validationFactory->make( |
|
| 15 | 7 | array_merge(['role' => $this->route('role')], $this->all()), |
|
| 16 | [ |
||
| 17 | 7 | 'role' => ['required', app(RoleBelongsToGroup::class)], |
|
| 18 | 'role_name' => ['sometimes', 'string', 'min:3', 'max:255'], |
||
| 19 | 'email' => ['sometimes', 'nullable', 'email'] |
||
| 20 | ] |
||
| 24 | } |