CreateRecord equivalency for EditRecord - mutateFormDataBeforeFill

In the EditRecord i use the mutateFormDataBeforeFill:
protected function mutateFormDataBeforeFill(array $data): array
{
    $data['test'] = 'ok';

    return $data;
}

So how to do it in the CreateRecord? I've tried to find a similar method, but im not lucky so far 🤔
I want to do the same, mutate $data, so it contains 'test' with a value
Solution
So you want a field to be prefilled when you are on the CreatePage? If so you would use the ->default() for the given field.

For example TextInput::make('dummy')->default('foo')

Or what exactly is it that you are trying to achieve?
Was this page helpful?