Repeater Error on Edit

I've try out the repeater Field, its work on create new Items, but when I try to edit a record I got the error: foreach() argument must be of type array|object, string given It's stores content as longText in the DB. Its only work with JSON type?
3 Replies
Tin
Tin2y ago
You can probably transform that string back to array let me check the docs 1 sec Hmm, not quite sure
awcodes
awcodes2y ago
Sounds like you need to cast the db field in your model to json.
slamx_
slamx_OP2y ago
Thanks - Solve the problem, forgot to add the $cast state for the specific field
Want results from more Discord servers?
Add your server