@@ -14,24 +14,24 @@ public function buildValidationRules(string $attribute, mixed $value): array
14
14
$ isScoutMode = $ request ->isScoutMode ();
15
15
16
16
return [
17
- $ attribute .'.limit ' => ['sometimes ' , 'integer ' , Rule::in ($ this ->resource ->getLimits ($ request ))],
17
+ $ attribute .'.limit ' => ['sometimes ' , 'integer ' , Rule::in ($ this ->resource ->getLimits ($ request ))],
18
18
$ attribute .'.page ' => ['sometimes ' , 'integer ' ],
19
- $ attribute .'.filters ' => ['sometimes ' , 'array ' ],
19
+ $ attribute .'.filters ' => ['sometimes ' , 'array ' ],
20
20
$ attribute .'.gates ' => ['sometimes ' , 'array ' , Rule::in (['viewAny ' , 'view ' , 'create ' , 'update ' , 'delete ' , 'restore ' , 'forceDelete ' ])],
21
- $ attribute .'.filters.* ' => (new SearchFilter ())->setResource ($ this ->resource ),
22
- $ attribute .'.scopes ' => ['sometimes ' , 'array ' , $ isScoutMode ? 'prohibited ' : '' ],
23
- $ attribute .'.scopes.* ' => (new SearchScope ())->setResource ($ this ->resource ),
24
- $ attribute .'.sorts ' => ['sometimes ' , 'array ' ],
25
- $ attribute .'.sorts.* ' => (new SearchSort ())->setResource ($ this ->resource ),
26
- $ attribute .'.selects ' => ['sometimes ' , 'array ' ],
27
- $ attribute .'.selects.* ' => (new SearchSelect ())->setResource ($ this ->resource ),
28
- $ attribute .'.aggregates ' => ['sometimes ' , 'array ' ],
29
- $ attribute .'.aggregates.* ' => (new SearchAggregate ())->setResource ($ this ->resource ),
30
- $ attribute .'.includes ' => ['sometimes ' , 'array ' ],
31
- $ attribute .'.includes.* ' => (new SearchInclude ())->setResource ($ this ->resource ),
32
- $ attribute .'.instructions ' => ['sometimes ' , 'array ' ],
33
- $ attribute .'.instructions.* ' => (new SearchInstruction ())->setResource ($ this ->resource ),
34
- $ attribute .'.text ' => ['sometimes ' , 'array ' , (new SearchText ())->setResource ($ this ->resource )],
21
+ $ attribute .'.filters.* ' => (new SearchFilter ())->setResource ($ this ->resource ),
22
+ $ attribute .'.scopes ' => ['sometimes ' , 'array ' , $ isScoutMode ? 'prohibited ' : '' ],
23
+ $ attribute .'.scopes.* ' => (new SearchScope ())->setResource ($ this ->resource ),
24
+ $ attribute .'.sorts ' => ['sometimes ' , 'array ' ],
25
+ $ attribute .'.sorts.* ' => (new SearchSort ())->setResource ($ this ->resource ),
26
+ $ attribute .'.selects ' => ['sometimes ' , 'array ' ],
27
+ $ attribute .'.selects.* ' => (new SearchSelect ())->setResource ($ this ->resource ),
28
+ $ attribute .'.aggregates ' => ['sometimes ' , 'array ' ],
29
+ $ attribute .'.aggregates.* ' => (new SearchAggregate ())->setResource ($ this ->resource ),
30
+ $ attribute .'.includes ' => ['sometimes ' , 'array ' ],
31
+ $ attribute .'.includes.* ' => (new SearchInclude ())->setResource ($ this ->resource ),
32
+ $ attribute .'.instructions ' => ['sometimes ' , 'array ' ],
33
+ $ attribute .'.instructions.* ' => (new SearchInstruction ())->setResource ($ this ->resource ),
34
+ $ attribute .'.text ' => ['sometimes ' , 'array ' , (new SearchText ())->setResource ($ this ->resource )],
35
35
];
36
36
}
37
37
}
0 commit comments