Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The BelongsTo field is not displayed. #52

Open
YarinceP opened this issue Feb 5, 2020 · 5 comments
Open

The BelongsTo field is not displayed. #52

YarinceP opened this issue Feb 5, 2020 · 5 comments

Comments

@YarinceP
Copy link

YarinceP commented Feb 5, 2020

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.

@ziming
Copy link

ziming commented Feb 6, 2020

A BelongsTo would be really useful to have!

@ratno
Copy link

ratno commented Feb 7, 2020

is this the same like #39 ?

@brandonferens
Copy link
Member

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

@4n70w4
Copy link

4n70w4 commented Feb 18, 2020

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

@ragingdave
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants