I have a dynamic container which fields come from function depending on the selection from belongs to field,
how could i use this selection inside container and pass it to function ?
BelongsTo::make('Type','type',Type::class),
NovaDependencyContainer::make([
Select::make(__('Language'),'language')
->options($languages)
->displayUsingLabels(),
NovaDependencyContainer::make(
**$this->pageFields( 'type_id','language_id')**
)->withMeta([
'dependencies' => [
['field' => 'language', 'property' => 'language', 'notEmpty' => true],
],
]),
])->withMeta([
'dependencies' => [
['field' => 'type', 'property' => 'type', 'notEmpty' => true],
],
]),
I have a dynamic container which fields come from function depending on the selection from belongs to field,
how could i use this selection inside container and pass it to function ?