Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Apr 17, 2020
1 parent da16cfd commit 6316497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class MyResource extends Resource

## Sorting on HasMany relationship

**NB!** The model only be sorted on either the Index view **or** the HasMany list view, but not both!
**NB!** The resource can only be sorted on **either** the Index view **or** the HasMany list view, but not both!

Sorting on HasMany is simple. Add `'sort_on_has_many' => true` to the `$sortable` array on the model. Like so:

Expand Down

0 comments on commit 6316497

Please sign in to comment.