Total Complexity | 5 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class DynamicSettingIndexRequest extends FormRequest |
||
9 | { |
||
10 | private ?Model $source = null; |
||
11 | |||
12 | public function authorize(): bool |
||
13 | { |
||
14 | return true; |
||
15 | } |
||
16 | |||
17 | public function rules(): array |
||
18 | { |
||
19 | return [ |
||
20 | 'limit' => 'required|int|max:100', |
||
21 | 'page' => 'required|int|min:1', |
||
22 | 'source_type' => 'nullable|string', |
||
23 | 'source_id' => 'nullable|int', |
||
24 | ]; |
||
25 | } |
||
26 | |||
27 | public function getRelatedModel(): ?Model |
||
35 | } |
||
36 | } |
||
37 |