Nico
Set multiple properties on the same field
What I am trying to do:
I have a company model which contains the following fields: address, city, zipcode, country and location (postgres geography column: latitude, longitude).
I'm attempting to use a Google Maps autocomplete to fill out all of the models on the property from what is returned from the autocomplete field.
I would just like to know if there is a simple way to send multiple properties to the view and receive multiple properties back from the view when saving.
What I did:
I've tried some of the plugins that already exist but I haven't had success configuring them to work exactly how I would like it.
My issue/the error:
The current solution works fine when editing an existing company but when it's used to create a new the dehydrateStateUsing doesn't seem to apply the properties correctly.
Code:
The TextInput used:
The address autocomplete blade view is attached
5 replies