Repeater is not working in custom modal form.
I define a custom modal form in my table, I define a form for it and establish the hasmany relationship, but when I open the form, the repeater comes empty.
How can I solve this, what do you suggest?
Tables\Columns\TextColumn::make('relation_order_id')
->label(function () {
return new HtmlString("<span style='color: #0e82fc;'>İlişkili Kayıt No</span>");
})
->sortable()
->getStateUsing(function ($record) {
return new HtmlString("<span style='color: #111192; font-size: 14px; font-weight: bold;'>{$record->relation_order_id}</span>");
})
->searchable()
->action(
Action::make('openForm')
->form([
Repeater::make('qualifications')
->relationship()
->schema([
// ...
])
)]
->label('Detayları Göster')
->modalWidth('7xl') ) ->toggleable(),
->modalWidth('7xl') ) ->toggleable(),
0 Replies