Pierrad
Address autocomplete custom field does not update relationship
Hi, I've created a custom field to implement an address autocomplete field with a custom API to call. This field is used in a relation manager based on a "location" relationship. This relationship contains multiple field like "address, city, latitude...".
My custom field should be able to fill the relationship with values retrieved from the API. I can retrieve the different values in my parent form but I don't know how to map them to the field of the location relationship. Can you help me with that ?
Here's a gist containing the relation manager and the blade component. The PHP class for the field is nearly empty (except the view property) : https://gist.github.com/Pierrad/298ea2056714dfc0c55759406406d9b9
PS: I'm new to Laravel, Livewire and Filament development, so if there is a better way to do things, please tell me. Thanks
18 replies