Display belongsTo relation in details of Nova resource
Does anyone have any experience with displaying belongsTo relationship details in separate panel?
For an example, we have an Order resource and in details page of it I would like to display fields from Customer (belongsTo) in separate panel.
Currently I am using BelongsTo Field, but this generates only link to Customer resouce.
@STEREOH - I understand one to many relationship, but I am having problem displaying said relationship in Laravel Nova.
By default, resource displays belongsTo relationship as a name of resource with link to said resource, but I want it to display specific fields of said resource.
You can do it by using the display-function to select what to display. See example below, you can also use this relation multiple times to display more than one field.