Modify relationship data before inserting/creating
So I do have a resource, with a form with multiple text inputs.
In that form I made a fieldset that links to a relation
As you can see, in there I have 2 inputs in there. Now when I click on create in Filament, I want to modify the data from the text input.
Normally I would modify the data in the
app\Filament\Resources\MyResource\Pages\CreateMyResourcePage.php
using the mutateFormDataBeforeCreate(array $data)
method.
But in the $data of the mutateFormDataBeforeCreate method, I do not have access to the relationship properties <a:aPES_Think:493353113332219924>
So how would I modify it?2 Replies