© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
Asmit

Repeater edit value with array type.

I have an array with validation rules like
 [
    [
      "rule" => "required",
      "value" => null,
    ],
  ]
 [
    [
      "rule" => "required",
      "value" => null,
    ],
  ]


This is my edit form
Repeater
Repeater
field
 Repeater::make('validationRuleInArray')
    ->schema([
        Select::make('rule')
            ->options(function (Get $get) {
                return $get('../../field') ? $get('../../field')->getValidationRules() : null;
            })
            ->required(),
        TextInput::make('value')
            ->nullable(),
    ])->columns(2)
    ->columnSpanFull(),
 Repeater::make('validationRuleInArray')
    ->schema([
        Select::make('rule')
            ->options(function (Get $get) {
                return $get('../../field') ? $get('../../field')->getValidationRules() : null;
            })
            ->required(),
        TextInput::make('value')
            ->nullable(),
    ])->columns(2)
    ->columnSpanFull(),

Here the
validationRuleInArray
validationRuleInArray
is an attribute of the model and it returns array of validation rules like above array but in UI It shows only repeater add button.
Please suggest me how to render an array value on
Repeater
Repeater
for edit form.
Screenshot_2024-08-29_at_10.49.26.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Repeater with key:value
FilamentFFilament / ❓┊help
2y ago
Testing edit form with repeater
FilamentFFilament / ❓┊help
2y ago
Manually fill simple repeater data value on edit
FilamentFFilament / ❓┊help
2y ago
Repeater default value
FilamentFFilament / ❓┊help
10mo ago