laravel / nova-issues

554 stars 34 forks source link

[FEATURE REQUEST] Allow Relationship field types to display custom names. #462

Closed rickmacgillis closed 6 years ago

rickmacgillis commented 6 years ago

Relationship field types default to the names defined on the relationship resource or the auto-generated resource name. They do not allow for custom names like other field types. With ownedTeams() and teams() on the Laravel Spark CanJoinTeams trait, we need to be able to display those with unique names. Using Teams for both headings doesn't work very well for distinguishing what they both mean.

Issue #116 also has this issue.

Example:

...
HasMany::make(__('Owned Teams'), 'ownedTeams', Team::class)
    ->onlyOnDetail(),

BelongsToMany::make(__('Member of Teams'), 'teams', Team::class)
    ->onlyOnDetail(),
...
taylorotwell commented 6 years ago

This repository is for tracking bugs. Feature requests may be emailed to Nova customer support.

rickmacgillis commented 6 years ago

@taylorotwell Where do I do that at?

dinhngocvuong commented 6 years ago

@rickmacgillis Check it out

rickmacgillis commented 6 years ago

@dinhngocvuong Thanks. I missed that, and now I sent the feature request.