mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 16:31:33 +02:00
18 lines
269 B
PHP
18 lines
269 B
PHP
<?php
|
|
|
|
namespace App\Models\Traits;
|
|
|
|
trait AccountTrait
|
|
{
|
|
|
|
public function getDisplayName()
|
|
{
|
|
if ($this->name) {
|
|
return $this->name;
|
|
}
|
|
|
|
$user = $this->users()->first();
|
|
|
|
return $user->getDisplayName();
|
|
}
|
|
} |