Open slowdream opened 2 years ago
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