Total Complexity | 1 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | abstract class FormRequest extends IlluminateFormRequest |
||
9 | { |
||
10 | /** |
||
11 | * FormRequest constructor. |
||
12 | * |
||
13 | * @param array $query The GET parameters |
||
14 | * @param array $request The POST parameters |
||
15 | * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...) |
||
16 | * @param array $cookies The COOKIE parameters |
||
17 | * @param array $files The FILES parameters |
||
18 | * @param array $server The SERVER parameters |
||
19 | * @param string|resource|null $content The raw body data |
||
20 | */ |
||
21 | public function __construct(array $query = [], |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Determine if the user is authorized to make this request. |
||
40 | * |
||
41 | * @return bool |
||
42 | */ |
||
43 | abstract public function authorize(): bool; |
||
44 | |||
45 | /** |
||
46 | * Get the validation rules that apply to the request. |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | abstract public function rules(): array; |
||
51 | } |
||
52 |