relation manager customizing data before saving not working!
trying to modify data before saving a new record in the relation manager but normal lifecycle hook are not being called.
->headerActions([
Tables\Actions\CreateAction::make()
->mutateFormDataUsing(function (array $data) {
dd($data);
}),
])
7 Replies
Solution
can you try adding in emptystateActions.
what is the output?
Nothing it appears that the mutateFormDataUsing is not being triggered
Is there CreateAction in
emptyStateActions
function?No, does it matter?
yep
Can you share the whole code please?
Just tried adding the createAction in empty state and it is working now... Don't understand why . Thanks for the help