snipe-it/app/Presenters/CompanyPresenter.php
2016-12-29 14:02:18 -08:00

29 lines
498 B
PHP

<?php
namespace App\Presenters;
/**
* Class CompanyPresenter
* @package App\Presenters
*/
class CompanyPresenter extends Presenter
{
/**
* Link to this companies name
* @return string
*/
public function nameUrl()
{
return (string) link_to_route('companies.show', $this->name, $this->id);
}
/**
* Url to view this item.
* @return string
*/
public function viewUrl()
{
return route('companies.show', $this->id);
}
}