FilamentF
Filament3y ago
3 replies
jaocero

How to use defaultSort as orderByRaw?

Hi, just want to ask how to achieve a defaultSort with a certain
status
like
invited, active, revoked
etc. I have achieve this behavior using
protected function getTableQuery(): Builder
but my problem is that whenever I have
->sortable()
in my columns it remains the sorting as
invited, active, revoked etc
and the only changing is how the rows sorted but the sorting overall is same with the arrangment of status.
snippet.png
snippet_1.png
Was this page helpful?