F
Filamentβ€’15mo ago
nwalty

mutateFormDataBeforeCreate on wizard

I am trying to add a "from_user_id" to $data via mutateFormDataBeforeCreate(). I can dump $data before the creation and it shows "from_user_id" in the array with the correct user id. When I repeat without the dump, the user id is not saved to the DB.
5 Replies
toeknee
toekneeβ€’15mo ago
is from_user_id fillable? in the model
nwalty
nwaltyβ€’15mo ago
wow, nope it wasn't.
toeknee
toekneeβ€’15mo ago
πŸ˜‰
nwalty
nwaltyβ€’15mo ago
Thanks much!
toeknee
toekneeβ€’15mo ago
Anytime, we have all been there!