Repeater: Get current form id
I have this task table where fields are
id
, title
, description
, creator_id
, due_date
, parent_id
, type
I added Repeater on my $form , my goal is I want create sub task, which is determine by type
and also under what main task parent_id
.
How to get the id
and assign it as default on my TextInput::make('parent_id')
1 Reply
you dont need the ID field
you just need to define a
->relationship()
on the repeater and we handle saving it
check the repeater docs