public function withFamilyTree($value = true) { $children = self::childsOf($this->id)->get(); if ($children->count()) { $this->children = $children->buildTree(); } return $this; }