nova-inline-relationship
nova-inline-relationship copied to clipboard
The BelongsTo field is not displayed.
Hi thanks for the Awesome package! 💯
I have a child resource with a BelongsTo relationship of another model, but this is not shown in any view of the parent resource.
A BelongsTo would be really useful to have!
is this the same like https://github.com/kirschbaum-development/nova-inline-relationship/issues/39 ?
@YarinceP We are glad you enjoy the package!
I would like to understand the issue better. Would you please post the code within the fields()
method of both the parent and child Nova resources?
Thanks!
The same problem. Laravel Nova 2.10.1
Parent fields:
HasMany::make(__('Assets'), 'assets', Asset::class)->inline(),
Asset fields:
BelongsTo::make(__('Asset type'), 'assetType', AssetType::class)->inline(),
Text::make(__('Quantity'), 'quantity'),
BelongsTo::make(__('Asset manufacturer'), 'assetManufacturer', AssetManufacturer::class)->inline(),
BelongsTo::make(__('Asset model'), 'assetModel', AssetModel::class)->inline(),
But displayed only quantity
text field.
Just hit this during my initial testing of using this (on top of #42 ) and based on this hiding a completely unrelated BelongsTo field, it seems this isn't quite ready for primetime yet