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),
It is declared as every relation is, and takes the common modifiers too.