EMERGENCY - before, using, and mutateRecordDataUsing doesn't work for EditAction
This is not working for a client that needs this done tomorrow. These methods work on the DeleteAction but not edit.
This does not work.
Does not work
4 Replies
What are you trying to do? You are telling us, something isn't working, but not what you want to do.
These methods work on the DeleteAction but not edit.This sentence doesn't make sense. Why would you want to modify form data on a DeleteAction which doesn't have a form.
Think he is saying the actions work on delete but not edit
I recon it is working, but I suspect the form doesn't have or isn't allowing updating the title.
Yep just tested it myself:
changes my users first_name to first_namesss when saving.
So this action works perfectly well.
Also tested:
Also changes my users name to dddddddf on load when editing the record, again working as expected.
Is your
title
in $fillable
or your fields unguarded?Just to say that if you are using a EditPage, you should use this