How to remove primary key order from the eloquent query.
I am making a custom table for my client and grouping the results based on my needs.
Seems like the Filament automatically adds primary key ordering to the query which then causes an sql exception.
Is there a way to remove the default key order by from the query?
Whole query:
Solution:Jump to solution
Turns out I am just dumb and the getEloquentQuery() method applies to all the pages and I didn't want that.
So instead all I needed to do it this:
```php...
1 Reply
Solution
Turns out I am just dumb and the getEloquentQuery() method applies to all the pages and I didn't want that.
So instead all I needed to do it this:
Set the defaultSort() to my specific key and that removes the sql problem and now the query applies only for the table view.
So for now the question is resolved.