Accessing table query from stat widget (but inside the ViewRecord page)
Hi all!
I am trying to access the table query from a specific table on a ViewRecord page in my resource.
https://filamentphp.com/docs/3.x/panels/resources/widgets#accessing-page-table-data-in-the-widget
I came accross this piece of docs, and it works great on my ListRecords page, but I was wondering if there is a way to also fetch the query of a table on my ViewRecord page. More specifically, a table that is owned by a relation manager.
I tried the trait on as well the ViewRecord page as the RelationManager, but I haven't had any luck so far.
Thanks!
I am trying to access the table query from a specific table on a ViewRecord page in my resource.
https://filamentphp.com/docs/3.x/panels/resources/widgets#accessing-page-table-data-in-the-widget
I came accross this piece of docs, and it works great on my ListRecords page, but I was wondering if there is a way to also fetch the query of a table on my ViewRecord page. More specifically, a table that is owned by a relation manager.
I tried the trait on as well the ViewRecord page as the RelationManager, but I haven't had any luck so far.
Thanks!