Benjacho / belongs-to-many-field-nova

Belongs To Many field Laravel nova to represent many to many relationship in field.
MIT License
157 stars 81 forks source link

#50 Fix component inside nova-dependency-container #96

Open tassilogroeper opened 3 years ago

tassilogroeper commented 3 years ago

Looking at https://github.com/Benjacho/belongs-to-many-field-nova/pull/50

We have the same problem: this module belongs-to-many-field-nova does not work inside the third party nova package nova-dependency-container due to nesting.

The issue: When a form uses nova-dependency-container that contains a relation, the call to '/{resource}/options/{relationship}/{optionsLabel}/{dependsOnValue?}/{dependsOnKey?}' route fails - not finding its own component key among the fields. We just have to add the meta description of the nova-dependency-container to the query.

I found no other solution as already given in the issue mentioned above. If there is a more general solution not specifically targeting nova-dependency-container, would be nice.