public function withParentTree() { if (!in_array('parent_tree', $this->appends)) { $this->appends[] = 'parent_tree'; } return $this; }