hasMany('Incident', 'component', 'id'); } /** * Looks up the human readable version of the status. * @return string */ public function getHumanStatusAttribute() { return Lang::get('component.status.' . $this->status); } /** * Get the transformer instance. * * @return mixed */ public function getTransformer() { return new ComponentTransformer(); } }