© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
MohamedSabil83

Repeater `defaultItems()` not works

The
Repeater
Repeater
displayed empty until pressing the add button. I want to display a specific numbers. As I know it's by setting it like
->defaultItems(2)
->defaultItems(2)
but not works. Am I missing something?

Forms\Components\Repeater::make('blogs')
  ->schema([
      Forms\Components\TextInput::make('title'),
  ])
  ->defaultItems(2),
Forms\Components\Repeater::make('blogs')
  ->schema([
      Forms\Components\TextInput::make('title'),
  ])
  ->defaultItems(2),
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 defaultItems
FilamentFFilament / ❓┊help
3y ago
Dynamically change defaultItems in Repeater
FilamentFFilament / ❓┊help
3y ago
update defaultItems repeater with an other fields
FilamentFFilament / ❓┊help
2y ago
Won't Work the defaultItems(1) on Repeater
FilamentFFilament / ❓┊help
9mo ago