snipe-it/app/Presenters/CompanyPresenter.php

29 lines
498 B
PHP
Raw Normal View History

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