tailflow / laravel-orion

The simplest way to create REST API with Laravel

Home Page:https://orion.tailflow.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can i set default get record order by id descending order?

nishantp306 opened this issue · comments

right now we are getting default record by order id asc. i want to set id desc. can any one guide me how can i set it?

Hi @nishantp306,

You can customize the default sorting of query using buildIndexFetchQuery method on a controller.