Populating Repeater Select Dropdown

How can you populate a select dropdown inside a repeater based on the select dropdown outside the repeater. See attached screenshot. Thank you!
2023-11-25_23-01-56.webp
Solution
Passing an array into the repeater..
->live()
->afterStateUpdated(function($state, \Closure $get) {
  $set('myRepeater', SubjectsModel::find((int) $state)->toArray());
}


should work, or your can do a built of an array from populating it and then settingn it as but the $set above
Was this page helpful?