Level 75
@alev You can find it in documentation
From docs: https://nova.laravel.com/docs/3.0/resources/relationships.html#belongsto
To customize the "title" attribute of a resource, you may define a title property on the resource class:
public static $title = 'email';
Alternatively, you may override the resource's title method:
/**
* Get the value that should be displayed to represent the resource.
*
* @return string
*/
public function title()
{
return $this->email;
}
1 like