Relationship in Form not saving on create action.
This is inside my form, When I create a new record - the options do populate and when I dd on the $data in the function "handleRecordCreation", the fields are occupied with valid IDs.
However, when I press to create, the values don't save. But if I go back in and edit that record and select options again, they do save that time. I dont have any custom logic to handle the records (I only added handleRecordCreation as a test to check the data, then removed it again)
5 Replies
Just cant seem to find why it doesn't save initially. I believe it had previously worked before I added nested fieldsets, then I reverted back to what I had just to check but now that doesn't work either
Got a fix by manually taking over the data and creating a new item. But if I've defined the relations properly like above, it should work by default?
i have same problem, do you succeed to fix it?
I didnt sadly, I just had to manually handle the data
my case the problem was because of $fillable items in my model, i forgot to add the column to $fillable. is that ok for you?
Nah, that wasn't my issue