© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
KiaBoluki

how to set max repeat for a repeater

I want to limit user to upload up to 3 images. I am using the repeater for this. is this best practice ? and if yes how can I limit the user to upload at least one and at most 3 images?
Solution
You can do this
Repeater::make('members')
->schema([
// ...
])
->minItems(2)
->maxItems(5)
Jump to solution
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

How to "$set" Repeater itemLabel()
FilamentFFilament / ❓┊help
3y ago
how to use set in a repeater
FilamentFFilament / ❓┊help
2y ago
How to dynamically set defaults for Repeater fields?
FilamentFFilament / ❓┊help
12mo ago
How to set Height or Max height for RickEditor?
FilamentFFilament / ❓┊help
3y ago