File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,19 +104,19 @@ In order to allow modifying the query for your model you can implement the `HasA
104
104
``` php
105
105
class User extends Model implements HasAllowedFields, HasAllowedSorts, HasAllowedFilters {
106
106
// Which fields can be selected from the database through the query string
107
- public function getAllowedFields(): array
107
+ public static function getAllowedFields(): array
108
108
{
109
109
// Your implementation here
110
110
}
111
111
112
112
// Which fields can be used to sort the results through the query string
113
- public function getAllowedSorts(): array
113
+ public static function getAllowedSorts(): array
114
114
{
115
115
// Your implementation here
116
116
}
117
117
118
118
// Which fields can be used to filter the results through the query string
119
- public function getAllowedFilters(): array
119
+ public static function getAllowedFilters(): array
120
120
{
121
121
// Your implementation here
122
122
}
You can’t perform that action at this time.
0 commit comments