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 if you want to access the current record https://filamentphp.com/docs/3.x/panels/resources/custom-pages#using-a-resource-record...
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira6mo ago
send model? What does it mean? I think you can use InteractsWithRecord if you want to access the current record https://filamentphp.com/docs/3.x/panels/resources/custom-pages#using-a-resource-record
nuovo2023
nuovo2023OP6mo ago
Thanks
Want results from more Discord servers?
Add your server