Multi field FieldComponent
I am trying to find out if it is possible to create a custom field / livewire component that actually controls several database fields in a filament form. For example a google maps integration where you can define the latitude and longitude database columns.
Something like this:
All implementations (including the existing google maps plugin) use tricks to overcome this (like getter and setter attributes on the model, or have traits on the editRecord/createRecord page). But I was wondering if it is possible to create a component that interacts with a form and can set several "statePaths".
If I read the document of a field, there it is clearly stated that a field is bound to one public property, so my guess is that it is not possible, but just checking.
Thanks in advance
kind regards
Andries
Something like this:
All implementations (including the existing google maps plugin) use tricks to overcome this (like getter and setter attributes on the model, or have traits on the editRecord/createRecord page). But I was wondering if it is possible to create a component that interacts with a form and can set several "statePaths".
If I read the document of a field, there it is clearly stated that a field is bound to one public property, so my guess is that it is not possible, but just checking.
Thanks in advance
kind regards
Andries