Conditional Select Field

Hi, a couple Select fields should be populated and/or disabled based on other fields in my application.

E.g. I only want to display rooms, which does not have been associated to a season yet.

Select::make('seasons')
  ...
  ->live(),

Select::make('rooms')
  ...
  ->options(fn (Contract $record, Get $get) => $record->rooms()->whereDoesntHave(...))


The select field is not repopulated, any ideas?
Was this page helpful?