Skip to main content
Quick Tip

Filament: Repeater with Exactly X Items

When using Repeater, you can provide a specific strict number of items.

For example, if you want to have 3 fields to pick the winners of a tournament, you can have the ->defaultItems(X)->addable(false)->deletable(false)

Repeater::make('winners')
->schema([
// ...
])
->defaultItems(3)
->addable(false)
->deletable(false);

Enjoyed This Tip?

Get access to all premium tutorials, video and text courses, and exclusive Laravel resources. Join our community of 10,000+ developers.

Recent Courses on Laravel Daily

Next.js Basics for Laravel Developers

11 lessons
58 min

Laravel 13 Starter Kit Teams and Customizations

10 lessons
33 min

Laravel 13 Eloquent: Expert Level

41 lessons
1 h 34 min

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.