[v2] Multiple images with relationship
I have this form
But after clicking submit, the image not save.. any idea?
I put fillable, no console error, no error at all.. but image is not save
2 Replies
Dot syntax only works in tables. You’ll need to wrap the FileUpload in something like Group::make(‘images’) and use -relationship() on the group. And make the FileUpload::make(‘image’) in the group schema.
Thanks @awcodes apparently "Relation managers" are compatible with HasMany, so decided to switch to relation manager..