Move HumanStatus to Presenter
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user