Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
9 | class SkillCrudRequest extends FormRequest |
||
10 | { |
||
11 | /** |
||
12 | * Determine if the user is authorized to make this request. |
||
13 | * |
||
14 | * @return boolean |
||
15 | */ |
||
16 | public function authorize() : bool |
||
17 | { |
||
18 | // Only allow updates if the user is a logged in Admin. |
||
19 | return backpack_auth()->check(); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * Get the validation rules that apply to the request. |
||
24 | * |
||
25 | * @return string[] |
||
26 | */ |
||
27 | public function rules() : array |
||
33 | ]; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * Get the validation messages that apply to the request. |
||
38 | * |
||
39 | * @return string[] |
||
40 | */ |
||
41 | public function messages() : array |
||
50 |