Replies: 1 comment
-
Apologies, I've been aware. For your sortable callback, you need to specify the actual table and field within your database that you want to sort by. |
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
-
I've got a model
OrderHistory
with a relationship to anitem
and asize
. Both arebelongs_to
relationships. What's currently working is displaying the correct data in the table using an anonymous column.For example
is showing the correct data. Although I've set
->sortable()
it doesn't sort. I've got to put a callback inside the function (according to #2023). But I can't wrap my head around how to construct such callback. I've taken inspiration from some posts on stackoverflow and laracasts. But the Problem is, that I always get an "Column not Found" error.I seem to be missing something.
Beta Was this translation helpful? Give feedback.
All reactions