HasOne#

HasOne is a relation to one related record of another resource, hasOne in the descriptor. It shows that record’s title in lists and on the record page, and is never on a form.

HasOne::to('profile', CustomerProfileResource::class),
A HasOne field on a customer's record page: the label Profile above the profile's title, Vienna
A HasOne field on a customer's record page: the label Profile above the profile's title, Vienna

It is declared as every relation is, and takes the common modifiers too.