createOptionForm Rendering-Error
I have following select component:
But my editForm-Modal does not render heading, true/false options in toggleButton and save-label. How can i fix this?
Select::make('creditor_id')
->label('Lieferant')
->relationship('creditor')
->afterStateUpdated(function (\Livewire\Component $livewire, string $operation) {if ($operation == 'edit'){$livewire->save();}})
->createOptionForm([
TextInput::make('company_name')
->label('Firmenname'),
TextInput::make('first_name')
->label('Vorname'),
TextInput::make('last_name')
->label('Nachname'),
TextInput::make('address')
->label('Anschrift'),
ToggleButtons::make('vstabz')
->label('VStAbz')->boolean()->inline(false)->grouped(),
])->createOptionForm([
TextInput::make('company_name')
->label('Firmenname'),
TextInput::make('first_name')
->label('Vorname'),
TextInput::make('last_name')
->label('Nachname'),
TextInput::make('address')
->label('Anschrift'),
ToggleButtons::make('vstabz')
->label('VStAbz')->boolean()->inline(false)->grouped(),
])->columns(4)->columnSpanFull(),
Select::make('creditor_id')
->label('Lieferant')
->relationship('creditor')
->afterStateUpdated(function (\Livewire\Component $livewire, string $operation) {if ($operation == 'edit'){$livewire->save();}})
->createOptionForm([
TextInput::make('company_name')
->label('Firmenname'),
TextInput::make('first_name')
->label('Vorname'),
TextInput::make('last_name')
->label('Nachname'),
TextInput::make('address')
->label('Anschrift'),
ToggleButtons::make('vstabz')
->label('VStAbz')->boolean()->inline(false)->grouped(),
])->createOptionForm([
TextInput::make('company_name')
->label('Firmenname'),
TextInput::make('first_name')
->label('Vorname'),
TextInput::make('last_name')
->label('Nachname'),
TextInput::make('address')
->label('Anschrift'),
ToggleButtons::make('vstabz')
->label('VStAbz')->boolean()->inline(false)->grouped(),
])->columns(4)->columnSpanFull(),
0 Replies