Skip to content

Change default ordering of Lucid Model #1272

Answered by thetutlage
zmaglica asked this question in Help
Discussion options

You must be logged in to vote

Simply constructor a query yourself.

await Model.query().orderBy('key', 'direction')

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zmaglica
Comment options

@thetutlage
Comment options

Answer selected by zmaglica
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants