Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class PermissionRequest extends Request |
||
6 | { |
||
7 | /** |
||
8 | * Get the validation rules that apply to the request. |
||
9 | * |
||
10 | * @return array |
||
11 | */ |
||
12 | public function rules() |
||
13 | { |
||
14 | return [ |
||
15 | 'parent_id.0' => 'required', |
||
16 | 'parent_id.1' => 'required', |
||
17 | 'actions' => 'array', |
||
18 | ]; |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Get the error messages for the defined validation rules. |
||
23 | * |
||
24 | * @return array |
||
25 | */ |
||
26 | public function messages() |
||
31 | ]; |
||
32 | } |
||
34 |