sdssd
load and store state in custom field
I appreciate your answer
Now I have this and state sets correctly
H3MapSelector::make('map')-formatStateUsing(
fn(Area $r)=>$r->geocodes->pluck('code')->join(",")
)
This is supposed to work like ->setRelation method in select fields
Can you guide me with
1-is there anyway to write this cleaner?
2-how can i handle storing this input in relation table and not using it for main record
Thanks 🙏
4 replies