public function getPathAttribute()
	{
		$ancestors = $this->getAncestors();
		$return = array();
		foreach($ancestors as $ancestor) {
			$return[] = $ancestor->name;
		}
		$return[] = $this->name;
		return implode(' > ', $return);
	}
public function getPathAttribute()
	{
		$ancestors = $this->getAncestors();
		$return = array();
		foreach($ancestors as $ancestor) {
			$return[] = $ancestor->name;
		}
		$return[] = $this->name;
		return implode(' > ', $return);
	}
public function getPathAttribute ( ) { $ ancestors = $ this -> getAncestors ( ) ; $ return = array ( ) ; foreach ( $ ancestors as $ ancestor ) { $ return [ ] = $ ancestor -> name ; } $ return [ ] = $ this -> name ; return implode ( ' > ' , $ return ) ; }
Accessor for path attribute, which is a string consisting of the ancestors of each node, separated by " > ".
@return string
Accessor for path attribute which is a string consisting of the ancestors of each node separated by > .