mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
29 lines
498 B
PHP
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);
|
|
}
|
|
}
|