public function attribute($name)
    {
        $v = $this->attributes()->$name;
        if(!empty($v))
            return (string)$v;
    }
public function attribute($name)
    {
        $v = $this->attributes()->$name;
        if(!empty($v))
            return (string)$v;
    }
public function attribute ( $ name ) { $ v = $ this -> attributes ( ) -> $ name ; if ( ! empty ( $ v ) ) return ( string ) $ v ; }
Retrieves and attribute by name

@param string $name The name of the attribute to get

@return mixed Returns nothing if not found, or a string for the value of the found attribute
Retrieves and attribute by name