kirschbaum-development / nova-inline-relationship

A package to present relationships as inline properties in Nova.
MIT License
196 stars 84 forks source link

hasOne behavior #101

Closed bilogic closed 8 months ago

bilogic commented 3 years ago

Hi,

I have this: sales_orders hasOne customer, i.e. customers.sales_order_id points to sales_orders.id So when I add HasOne::make("customer")->inline() in the SalesOrder Nova resource, wouldn't it make more sense to show the customer's name in the index view instead of showing 1 customer?

sales_orders and customers may not be the best example here, but my point is, why not show the contents instead of just the count, since it hasOne only. Thank you.

luisdalmolin commented 8 months ago

If this is still something you would want, feel free to submit a PR.