Create Options Forms on a Select
Hello how can i create an option Forms on my non-relationship Select :
Forms\Components\Repeater::make('userFonctions')
->relationship()
->schema([
Forms\Components\Select::make('fonction_id')
->label('Fonction')
->options(Fonction::query()->pluck('name', 'id'))
->required()
->columnSpan([
'md' => 5,
])
->searchable()
->createOptionForm([
Forms\Components\TextInput::make('name')
->label('nom')
->unique(ignoreRecord: true)
->maxLength(255)
->required(),
Forms\Components\TextInput::make('diminutif')
->label('Abréviation')
->unique(ignoreRecord: true)
->maxLength(255)
->required(),
]),