© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
tinyman1199

Access record from Tab Widget

Hi, I am trying to access the current record within a widget which is another tab on the infolist.

I've tried adding
public ?Model $record = null;
public ?Model $record = null;
within the widget class but it just returns null.
I also tried passing it through the widget properties but couldn't get that to work.
I was previously doing it by getting the url and getting the record ID from that but due to refreshing the widget using livewire after an action is performed this no longer works as the refresh url is different, something along the lines of
.../livewire/refresh
.../livewire/refresh


Any help is appreciated.
Thanks
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

Access current record within Widget
FilamentFFilament / ❓┊help
2y ago
Access current resource page from widget
FilamentFFilament / ❓┊help
6mo ago
record data in widget
FilamentFFilament / ❓┊help
3y ago
access current record from custom view
FilamentFFilament / ❓┊help
3y ago