Forms\Components\Select::make('categories')
->relationship('categories', 'name')
->multiple()
->preload()
->live()
->options(fn (Get $get) => static::getCategoryOptions($get))
->disableOptionWhen(function (string $value, Get $get): bool {
return static::shouldDisableCategory($value, $get);
})
Forms\Components\Select::make('categories')
->relationship('categories', 'name')
->multiple()
->preload()
->live()
->options(fn (Get $get) => static::getCategoryOptions($get))
->disableOptionWhen(function (string $value, Get $get): bool {
return static::shouldDisableCategory($value, $get);
})