Value in Select component

I see the value in the Select component, but when selected, I only get the array position of the Select component in the database.
I want the code as seen in the Documentation where the Select component gives the value:
`'draft' => 'Draft'
``.
How can I best modify this code? Excuse for my poor English...

`->headerActions([
                Tables\Actions\CreateAction::make(),
                Tables\Actions\AttachAction::make()
                    ->form(fn(AttachAction $action): array => [
                        $action->getRecordSelect(),
                        Forms\Components\Select::make('details')->multiple()
                            ->options(function (RelationManager $livewire): array {
                                return $this->getOwnerRecord()
                                    ->getAttribute('eventtype')
                                    ->toArray();

                            }),
                    ]),
            ])
`
Was this page helpful?