#Joining DB tables into single Filament table

6 messages · Page 1 of 1 (latest)

drowsy coral
rocky furnace
#

Yes, I saw your comment on GitHub here https://github.com/filamentphp/filament/discussions/10228 and I actually did the same question there. The problem is that I would need one view for each date, because this table would only show records for a specific day.

GitHub

Occasionally, in tables, we employ multiple table joins to fetch and display data. In certain scenarios, using Query Builder instead of Eloquent Builder may be necessary. Are there any ways to impl...

#

The $table value would need to be something like $table = "appointments_view_<date-filter-value>", e.g.: $table = "appointments_view_2024-05-05"

rocky furnace
#

Maybe every time the filter changes I truncate the view and re-add according to the filter's value?

#

I'm saying truncate and re-add so there's always updated data

drowsy coral
#

Honestly, I don’t understand why different view names are necessary when you can use a query to filter what you need..