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:
doh...of course: ->modifyQueryUsing(fn (Builder $query) => $query->orderBy('created_at', 'desc'))
Jump to solution
1 Reply
Solution
Matthew
Matthew4mo ago
doh...of course: ->modifyQueryUsing(fn (Builder $query) => $query->orderBy('created_at', 'desc'))
Want results from more Discord servers?
Add your server