public function getTitleUrlAttribute()
    {
        $name = $this->attributes['title'] . ' ( ' . $this->attributes['url'] . ' )';
        if ($this->parent) {
            $name .= " - {$this->parent->title}";
        }

        return $name;
    }
public function getTitleUrlAttribute()
    {
        $name = $this->attributes['title'] . ' ( ' . $this->attributes['url'] . ' )';
        if ($this->parent) {
            $name .= " - {$this->parent->title}";
        }

        return $name;
    }
public function getTitleUrlAttribute ( ) { $ name = $ this -> attributes [ 'title' ] . ' ( ' . $ this -> attributes [ 'url' ] . ' )' ; if ( $ this -> parent ) { $ name .= " - {$this->parent->title}" ; } return $ name ; }
Get a the title + url concatenated

@return string
Get a the title + url concatenated