F
Filament16mo ago
core

how to create order ID (step_number) for repeater on create and reorder on create, edit?

I have the basic repeater form component: // Step by Step Instructions Forms\Components\Section::make('Step by Step Instructions ') ->description('Recipe') ->columnSpan(3) ->schema([ Repeater::make('steps') ->relationship() ->schema([ Forms\Components\TextInput::make('step_number'), Forms\Components\TextArea::make('description') ->required(), Forms\Components\FileUpload::make('media'), ]), ]), I would like to insert/update step_number field as well, and update it thanks
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server