invoiceninja/app/Ninja/Presenters/AccountPresenter.php

17 lines
339 B
PHP
Raw Normal View History

2015-11-06 12:59:53 +02:00
<?php namespace App\Ninja\Presenters;
2015-12-14 23:05:17 +02:00
use Utils;
2015-11-06 12:59:53 +02:00
use Laracasts\Presenter\Presenter;
class AccountPresenter extends Presenter {
public function name()
{
return $this->entity->name ?: trans('texts.untitled_account');
}
2015-12-14 23:05:17 +02:00
public function website()
{
return Utils::addHttp($this->entity->website);
}
2015-11-06 12:59:53 +02:00
}