Closed vishalinfyom closed 2 years ago
https://github.com/rappasoft/laravel-livewire-tables/discussions/724
I already have the discussion ticket above, we tried some ways but it's not working.
Maybe I'm wrong also, or its not even supported?
We have nested relations and we are trying to add sorting on it using callback function, but its not working.
Example. i have following tables ::
Now i'm listing appointments by using sorting on user's first name. So the sorting will be looks like
->('patient.user', function (Builder $q) { $q->where('first_name', 'desc') ))
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bump
https://github.com/rappasoft/laravel-livewire-tables/discussions/724
I already have the discussion ticket above, we tried some ways but it's not working.
Maybe I'm wrong also, or its not even supported?
We have nested relations and we are trying to add sorting on it using callback function, but its not working.
Example. i have following tables ::
appointments
Patients
Users
Now i'm listing appointments by using sorting on user's first name. So the sorting will be looks like