Adjusting dates in table to either show "ASC" or "DESC" from model loading #935
Replies: 1 comment
-
I found the answer in the documentation, just use. public string $sortDirection = 'desc'; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
Hope all is well
Where would adjust the model to display the dates in either AC or DESC order.
I would usually just add "->orderBy('created_at', 'DESC')"
Thanks
Beta Was this translation helpful? Give feedback.
All reactions