Repeater and EditAction error
I have a list of items created from the Repeater Input and saved in DB as a json. When I used the edit action I get and error.
Solution:Jump to solution
Right, but a repeater, unless it is a relationship, needs to be cast on the model as either array or json.
5 Replies
What exactly are you trying to do? If all your casts are correct the repeater shouldn’t need any overrides.
I'm not using any cast. The column is set json @awcodes
I have a list of items that is curated using the repeater. I'want to be able to save it and also edit it. Note that I'm only using the form builder but not the panel. @awcodes
Solution
Right, but a repeater, unless it is a relationship, needs to be cast on the model as either array or json.
If you cast it, then you want need any of this. Laravel will handle it.
@awcodes Thank you. Problem solved!!!