Can't get `sortable()` method on the Table Builder to work
I have the following code to sort the table and I can't seem to get it to work.
I have tried to use
->defaultSort('next_invoice_date');
on the table, but I can't get the sortable to work.
Here is what is happening https://share.cleanshot.com/kfv42nWMSolution:Jump to solution
Figured out. I had the Eloquent Query using the
latest()
method and removing that fixed it,2 Replies
The
sortable()
method is on multiple columns and there is also a default filter set on the table.
even disabling the other sortable on the other columns don't help
is this is a problem if one of the column uses a relation?
any advice on this pleaseSolution
Figured out. I had the Eloquent Query using the
latest()
method and removing that fixed it,