Move HumanStatus to Presenter

This commit is contained in:
phecho
2015-12-23 19:44:06 +08:00
parent d5a71976d2
commit 8a47dd873f
6 changed files with 15 additions and 15 deletions

View File

@@ -157,16 +157,6 @@ class Component extends Model implements HasPresenter
return $query->where('enabled', false);
}
/**
* Looks up the human readable version of the status.
*
* @return string
*/
public function getHumanStatusAttribute()
{
return trans('cachet.components.status.'.$this->status);
}
/**
* Returns all of the tags on this component.
*