Repeater in generated forms

Newbie here, I have a form with 2 fields, name and status after reading the docs and running this
command php artisan make:filament-resource Brand --generate
command php artisan make:filament-resource Brand --generate
it creates the following:
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('brand')
->required()
->maxLength(255),
Forms\Components\Radio::make('status')
->options([
'1' => 'Published',
'0' => 'Offline'
])
->required(),
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('brand')
->required()
->maxLength(255),
Forms\Components\Radio::make('status')
->options([
'1' => 'Published',
'0' => 'Offline'
])
->required(),
]);
}
Is it possible to add the Repeater to this Form, so I can create more than one in one go?
0 Replies
No replies yetBe the first to reply to this messageJoin