1 | <?php |
||
8 | class DocumentRequest extends \Backpack\CRUD\app\Http\Requests\CrudRequest |
||
9 | { |
||
10 | /** |
||
11 | * Determine if the user is authorized to make this request. |
||
12 | * |
||
13 | * @return bool |
||
14 | */ |
||
15 | public function authorize() |
||
20 | |||
21 | /** |
||
22 | * Get the validation rules that apply to the request. |
||
23 | * |
||
24 | * @return array |
||
|
|||
25 | */ |
||
26 | public function rules() |
||
38 | |||
39 | /** |
||
40 | * Get the validation attributes that apply to the request. |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | public function attributes() |
||
52 | |||
53 | /** |
||
54 | * Get the validation messages that apply to the request. |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | public function messages() |
||
64 | } |
||
65 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.