mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
61543f3a04
* Add presenters for models. Move bootstrap table JSON generation to these presenters, which cleans up controllers a lot. Move view specific modifications from the models to the presenters as well. * Fix some issues found by travis and codacy * Fix a few more issues found while testing. * Attempt another acceptance test fix * Try something else * Maybe..
21 lines
337 B
PHP
21 lines
337 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);
|
|
}
|
|
}
|