mutateFormDataUsing not working on CreateAction
Hi, I can't get mutateFormDataUsing to work and mutate my data in a header CreateAction. I saw somebody else had the same issue, but it didn't seem to have been resolved. I've also tried "using", but also not working well. Any tips?
5 Replies
It could be a bug, I'm not sure... What are you trying to do? Maybe there's a workaround for your use-case.
I'm trying to set the file path of a PDF file by calling a route: Where my controller looks like this:
route()
is not calling the controller though... it's just returning a url. Did I miss anything?you're right, my bad. After using the Http facade, however, the mutateFormDataUsing method still doesn't get called and nothing changes
Yeah, could be a bug, I'm not sure. As a workaround, do you think you could use a lifecycle hook, like
afterSave()
?
https://filamentphp.com/docs/3.x/panels/resources/editing-records#lifecycle-hooks