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
Laravel 12 For Beginners: Your First Project
15 lessons
1 h 32 min
Filament 4 From Scratch
28 lessons
2 h 25 min
NativePHP: Build Mobile App with Laravel
11 lessons
2 h 2 min read