❓How to I embed a table in a form?

The enclosed pic is from an am I wrote decades ago. I'd like to convert it to Laravel using Filament. The app tracks Families and the People that belong to the Family, as well as a few other things. Thus, this is a classic "Family HasMany People" relationship. My question is about having a form to edit the Family and, on the same page, being able to have a small table for the People that allows for CRUD on the People related to the Family. I call this relationship a "Portal", but it may have a better name in Filament. While my UI is clunky, the UX is very helpful in that the Family record is "glanceable" - you can see all the local Family fields as well as the relationship fields. Of course, when you look at a Person (not shown here), you see the opposite - the relationship to the Family. Does such a "Portal" exist in Laravel/Filament? If not, do you have any suggestions as to how to accomplish this?
No description
4 Replies
toeknee
toeknee4w ago
Just build a standard form? You could use relationship managers instead of the people / permits and have that below iuff you don't need to replicate it exactly.
Stricks
Stricks4w ago
@toeknee Please forgive my newbie question, but is it possible for have a field on the Family form that are really a list of records from the People table? If so, is there a doc you can point me to? I didn't see how to do this in the Filament docs but maybe I missed it.
toeknee
toeknee4w ago
Yes, you can use the repeater field tied into relationship() or use #awcodes-table-repeater too
Stricks
Stricks4w ago
@toeknee Thanks for the tip - I'll try it.
Want results from more Discord servers?
Add your server