rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.78k stars 337 forks source link

Nested relations not working #726

Closed vishalinfyom closed 2 years ago

vishalinfyom commented 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 ::

appointments

Patients

Users

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')
))
stale[bot] commented 2 years ago

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.

rappasoft commented 2 years ago

Bump