1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00
invoiceninja/app/Models/Traits/AccountTrait.php
2018-10-15 23:40:34 +11:00

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();
}
}