When sort in query. other columns can't sort using sortable() method #648
Unanswered
SupunSpera
asked this question in
Q&A
Replies: 0 comments
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.
-
I have a datatable
`public function query(): Builder
{
return Product::query()->orderBy('created_at', 'DESC');
}
I have sorted the table using query. but I want to sort other columns also using sortable() method. When I use orderBy('created_at','DESC) can't sort by other columns
Beta Was this translation helpful? Give feedback.
All reactions