position of repeater
Is it possible to change the position order every time a repeater is created? I would like it to be displayed at the same time, horizontally and not vertically. Grid::make(
[
'default' => 1,
'sm' => 1,
'md' => 2,
'lg' => 2,
'xl' => 4,
]
)->schema([
Repeater::make('personal_references')->label(('employees.personal_references'))
->schema([
TextInput::make('name')->label(('employees.reference_name')),
TextInput::make('relationship')->label(('employees.reference_relationship')),
TextInput::make('phone_number')->label(('employees.reference_phone')),
])->createItemButtonLabel(__('employees.add_another'))
->disableItemMovement()
->maxItems(4)
])
5 Replies
Add this to your repeater:
And make your repeater columnSpan(‘full’)
this worked for me, thanks you.