Skip to content

Commit 4e5914c

Browse files
authored
Merge pull request #80 from christmex/patch-2
Update README.md
2 parents 063c90e + 0a40979 commit 4e5914c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,19 @@ In order to allow modifying the query for your model you can implement the `HasA
104104
```php
105105
class User extends Model implements HasAllowedFields, HasAllowedSorts, HasAllowedFilters {
106106
// Which fields can be selected from the database through the query string
107-
public function getAllowedFields(): array
107+
public static function getAllowedFields(): array
108108
{
109109
// Your implementation here
110110
}
111111

112112
// Which fields can be used to sort the results through the query string
113-
public function getAllowedSorts(): array
113+
public static function getAllowedSorts(): array
114114
{
115115
// Your implementation here
116116
}
117117

118118
// Which fields can be used to filter the results through the query string
119-
public function getAllowedFilters(): array
119+
public static function getAllowedFilters(): array
120120
{
121121
// Your implementation here
122122
}

0 commit comments

Comments
 (0)