From 0a409793626916ffd1f15c00493c0b5708edee63 Mon Sep 17 00:00:00 2001 From: Jonathan C <34405837+christmex@users.noreply.github.com> Date: Thu, 28 Nov 2024 12:08:24 +0700 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6e2605a..75a8dab 100644 --- a/README.md +++ b/README.md @@ -104,19 +104,19 @@ In order to allow modifying the query for your model you can implement the `HasA ```php class User extends Model implements HasAllowedFields, HasAllowedSorts, HasAllowedFilters { // Which fields can be selected from the database through the query string - public function getAllowedFields(): array + public static function getAllowedFields(): array { // Your implementation here } // Which fields can be used to sort the results through the query string - public function getAllowedSorts(): array + public static function getAllowedSorts(): array { // Your implementation here } // Which fields can be used to filter the results through the query string - public function getAllowedFilters(): array + public static function getAllowedFilters(): array { // Your implementation here }