Sort fields and default include paths
Pre-release
Pre-release
·
198 commits
to main
since this release
Added
- #14 Additional sort parameters can now be added to Eloquent schemas. Previously only sortable attributes were supported. These new classes are added to schemas in the
sortables()method. Refer to the new Sorting chapter in the documentation. - Eloquent schemas now support a default sort order via the
$defaultSortproperty. - New generator command
jsonapi:sort-fieldto create a custom sort field class. - #74 Developers can now add default include paths to the query request classes (e.g.
PostQueryandPostCollectionQuery) via the$defaultIncludePathsproperty. These include paths are used if the client does not provide any include paths.