nova-inline-relationship icon indicating copy to clipboard operation
nova-inline-relationship copied to clipboard

The BelongsTo field is not displayed.

Open YarinceP opened this issue 5 years ago • 5 comments

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.

YarinceP avatar Feb 05 '20 18:02 YarinceP

A BelongsTo would be really useful to have!

ziming avatar Feb 06 '20 04:02 ziming

is this the same like https://github.com/kirschbaum-development/nova-inline-relationship/issues/39 ?

ratno avatar Feb 07 '20 22:02 ratno

@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!

brandonferens avatar Feb 12 '20 16:02 brandonferens

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.

image

4n70w4 avatar Feb 18 '20 09:02 4n70w4

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

ragingdave avatar Jul 13 '20 17:07 ragingdave