public function showAttribute()
    {
        $present_attribute = $this->attribute;
        
        // Replace underscore and dots with space
        $to_be_replaced = array("_", ".");
        $present_attribute = str_replace($to_be_replaced, ' ', $present_attribute);
        
        return ucwords($present_attribute);
    }
public function showAttribute()
    {
        $present_attribute = $this->attribute;
        
        // Replace underscore and dots with space
        $to_be_replaced = array("_", ".");
        $present_attribute = str_replace($to_be_replaced, ' ', $present_attribute);
        
        return ucwords($present_attribute);
    }
public function showAttribute ( ) { $ present_attribute = $ this -> attribute ; // Replace underscore and dots with space $ to_be_replaced = array ( "_" , "." ) ; $ present_attribute = str_replace ( $ to_be_replaced , ' ' , $ present_attribute ) ; return ucwords ( $ present_attribute ) ; }
Present attribute in a User friendly string
Present attribute in a User friendly string