CreateOptionUsing Exception
My code look as follow also when createOptionUsing is executed everything works pefectly but when I return the newly created id of my tags, it throw this exception (screenshot)
Thanks
8 Replies
Please share the Flare error as mentioned in #✅┊rules
Sorry here it is:
https://flareapp.io/share/4m4MAdZP
Flare
Only arrays and Traversables can be unpacked - The error occurred at http://localhost:8000/teams/1
Is this admin panel or form builder?
Form Builder
Not sure how to properly use
fill
with prefilled data but I guess you should pass an empty array for tag_id
Yes it was for my previous test I set it to : $this->form->fill([]);
Don’t give an empty array as param. Just without the param.
Okay I also have tried without multiple, it works perfectly, but when I had multiple() it does not works anymore on creation process
I have reupdated the source code on my last comment
Resolved the problem came from JS part where they don't know what was tag