1 | <?php |
||
10 | class RoleFormRequest extends FormRequest |
||
11 | { |
||
12 | /** |
||
13 | * Determine if the user is authorized to make this request. |
||
14 | * |
||
15 | * @return bool |
||
16 | */ |
||
17 | public function authorize(): bool |
||
21 | |||
22 | /** |
||
23 | * Prepare the data for validation. |
||
24 | * |
||
25 | * @return void |
||
26 | */ |
||
27 | protected function prepareForValidation(): void |
||
41 | |||
42 | /** |
||
43 | * Get the validation rules that apply to the request. |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | public function rules(): array |
||
56 | } |
||
57 |
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.