Closed SuperlativeEntity closed 10 years ago
You can use the identifiebleName
method for this, add the following to your PersonType model:
public function identifiableName()
{
return $this->description;
}
(assuming you have a PersonType model, if not, just make one and pop this in it)
Worked. thanks man.
Hi Chris
I have the following migration:
and the following model:
However, I cannot get the foreign key description to display for the person_type_id, nor can I change the field format displayed. (I tried the $revisionFormattedFieldName. Also tried to do the accessor / mutator thing to no avail (copied and modified the examples from laravel's docs))
Any idea what I could be doing wrong?