public function getLabelAttribute()
    {
        if (!method_exists($this->type, 'resolveLabel')) {
            return $this->title;
        }

        return $this->type->resolveLabel($this);
    }
public function getLabelAttribute()
    {
        if (!method_exists($this->type, 'resolveLabel')) {
            return $this->title;
        }

        return $this->type->resolveLabel($this);
    }
public function getLabelAttribute ( ) { if ( ! method_exists ( $ this -> type , 'resolveLabel' ) ) { return $ this -> title ; } return $ this -> type -> resolveLabel ( $ this ) ; }
Return the label to use when displaying this resource

@return String
Return the label to use when displaying this resource