mutateFormDataBeforeCreate question

I want to send an API request before I store data in my DB so I use mutateFormDataBeforeCreate in my relevant Create Record page.
Is it the most suitable way to interrupt the saving process ?
I noticed that
protected function mutateFormDataBeforeCreate(array $data): array
    {
        dd($data);
        return $data;
    }


Select::make('sshKeys')
                    ->multiple()
                    ->relationship('sshKeys', 'name')
                    ->required()
                    ->preload()
                    ->label('SSH Key'),


When I try to get the data I cannot see the multi select data that are in a many to many relationship. Do you know why?

Thanks!
Was this page helpful?