mutateFormDataBeforeCreate not being called on create
I am using filament v4 and my category model has fields id, name and slug. I tried to make a mutateFormDataBeforeCreate function to auto set slug to the slug version of name but this method is never called. Here is my code
Solution
Not sure where you put the code, because you don't use a CreatePage. You are using the CreateAction. Check the docs here: https://filamentphp.com/docs/4.x/actions/create#customizing-data-before-saving