© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
uzdacpdz (Doug Dimmadome)

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!
Widgets - Panel Builder - Filament
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Accessing page table data in the widget
FilamentFFilament / ❓┊help
2y ago
widget stat
FilamentFFilament / ❓┊help
2y ago
Widget Stat
FilamentFFilament / ❓┊help
3y ago
add widget inside the table view
FilamentFFilament / ❓┊help
2y ago