F
Filamentβ€’2y 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β€’2y ago
is from_user_id fillable? in the model
nwalty
nwaltyOPβ€’2y ago
wow, nope it wasn't.
toeknee
toekneeβ€’2y ago
πŸ˜‰
nwalty
nwaltyOPβ€’2y ago
Thanks much!
toeknee
toekneeβ€’2y ago
Anytime, we have all been there!
Want results from more Discord servers?
Add your server