Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 6 | public function validator(ValidationFactory $factory) |
|
17 | { |
||
18 | 6 | return $factory->make( |
|
19 | 6 | ['role' => $this->route('role'), 'user' => $this->route('user')], |
|
20 | [ |
||
21 | 6 | 'role' => ['required', app(RoleBelongsToGroup::class)], |
|
22 | 6 | 'user' => ['required', app(UserBelongsToRole::class, ['roleId' => $this->route('role')])] |
|
23 | ] |
||
34 | } |