0

I am trying to scope the options based on the input taken from another field. How do I pass this variable inside this recordSelctOptionQuery?

recordSelectOptionsQuery(
    fn (Builder $query) => $query->whereBelongsTo(
        Item::find('id_selected_from_a_dependent_filed')
))

Reference: https://filamentphp.com/docs/2.x/admin/resources/relation-managers#attaching-and-detaching-records

Michael M.
  • 10,486
  • 9
  • 18
  • 34
shabxs
  • 51
  • 1
  • 4

0 Answers0