Default order on Relation table
How do I set the default order for a table pulled in by a Relation Manager?
If I set the order in model hasMany method, it works, but that breaks any sort by column functionality.
Solution:Jump to solution
doh...of course: ->modifyQueryUsing(fn (Builder $query) => $query->orderBy('created_at', 'desc'))
1 Reply
Solution
doh...of course: ->modifyQueryUsing(fn (Builder $query) => $query->orderBy('created_at', 'desc'))