Missing field on relationship
I have this relationship fieldset
My issue is, in the $data, origin_country does not exist. But in the database it exists, in my model fillable it exists.
Am I missing something?
7 Replies
dehydrated(false) removes it from the form data.
Ah, I misunderstood that, I read somewhere on google that it prevents the ability to update the field. Unless the disabled and readonly will do that for me? Preventing updating even through inspect element
But even removing that, its still not coming through the form data. Despite having valid data
Would have to check the spec but one of those might remove it from form submission too. Try just disabled or readonly separately.
If it isn’t editable though it shouldn’t be needed in the form data anyway.
Isn't editable, just want to display the current value
ah, think I misunderstood. You're saying it's not in showing in the form to start with?
Yeah
I got it working, I think. With this:
I have the same problem, but the textinput needs to be editable, and when I modify the data within mutate the change is ok, but it doesn't update the textinput