createOptionForm Rendering-Error

I have following select component:
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(),
But my editForm-Modal does not render heading, true/false options in toggleButton and save-label. How can i fix this?
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server