1 | <?php |
||
11 | class AbilityFormRequest extends FormRequest |
||
12 | { |
||
13 | use Escaper; |
||
14 | |||
15 | /** |
||
16 | * Determine if the user is authorized to make this request. |
||
17 | * |
||
18 | * @throws \Cortex\Foundation\Exceptions\GenericException |
||
19 | * |
||
20 | * @return bool |
||
21 | */ |
||
22 | public function authorize(): bool |
||
32 | |||
33 | /** |
||
34 | * Configure the validator instance. |
||
35 | * |
||
36 | * @param \Illuminate\Validation\Validator $validator |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function withValidator($validator): void |
||
45 | |||
46 | /** |
||
47 | * Get the validation rules that apply to the request. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | public function rules(): array |
||
55 | } |
||
56 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.