You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/2.endpoints/2.search.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -316,6 +316,10 @@ All fields specified here must be defined in the [fields method of your resource
316
316
}
317
317
```
318
318
319
+
#### Default sort
320
+
321
+
By default, Laravel Rest Api provides a default sort based on `id` descending. If you want to change this, please see the [configuration](/resources/exposed-data#default-sort)
322
+
319
323
### Selects
320
324
321
325
In some cases, you may want to specify the columns you want to select because it makes your API faster to not query unnecessary data.
@@ -547,4 +551,4 @@ When using full text search, some restrictions happens to the query:
547
551
|`filters.type`| Not allowed |
548
552
|`filters.nested`| Not allowed |
549
553
|**Sorts**||
550
-
|`sorts.field`| take scout fields instead of fields in resource detail |
554
+
|`sorts.field`| take scout fields instead of fields in resource detail |
0 commit comments