conditional-container
conditional-container copied to clipboard
MorphTo bug
MorphTo::make('Targetable')->types([
City::class,
]),
ConditionalContainer::make([
Select::make('type')
->options([EmergencyTypes::GENERAL => EmergencyTypes::GENERAL]),
])
->if(fn() => 'targetable_type = cities OR targetable = ' . City::uriKey()), // THIS WORK
->if(fn() => 'targetable = ' . City::uriKey()), // THIS NOT