FilamentF
Filament3y ago
Mdk

How to display and update pivot field in attach/edit form?

I've got a table, Places, that has a name and a description fields among other, and it's linked to an Itinerary table through a pivot, Itinerary_Place.
This pivot table also has both name and description, so I can override the default ones when attaching a place to an itinerary.
I can't find a way to display AND update the pivot name/description though, I can either display it by using make('pivot_name') but then it fails when it's time to save, or I can use make('name') and it'll update the correct field in the pivot table but it will always display the place's original name (same goes for the description)
What am I missing?
Was this page helpful?