© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
WashingtonG

Send Model to widget

Hello everyone, I need some help with this one.

I made a custom page, that will have widgets, but I'm trying to reuse the same widget, and add one per client, that's not the problem. the problem is, How can I send a model to a widget in order to show relevant data?

protected function getHeaderWidgets(): array
{
return [
CustomerStatus::make() // 1,
CustomerStatus::make() // 2,
];
}


The widget in mention is one based on BaseWidget, with a table in it.

Thanks for the help.
Solution
send model? What does it mean?
I think you can use
InteractsWithRecord
InteractsWithRecord
if you want to access the current record
https://filamentphp.com/docs/3.x/panels/resources/custom-pages#using-a-resource-record
Custom pages - Panel Builder - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Accessing Model /ResourceIn Widget
FilamentFFilament / ❓┊help
2y ago
Get Model id on Widget
FilamentFFilament / ❓┊help
2y ago
Unable to find component: [Filament\Widgets\WidgetConfiguration]
FilamentFFilament / ❓┊help
2y ago
Accessing the resource/model inside Stats Overview widget
FilamentFFilament / ❓┊help
2y ago