public function getChildsAttribute()
{
$childs = $this->hasMany('App\\Category')->orderBy('name')->get();
if (!count($childs)) {
$childs = null;
} elseif ($this->family_tree) {
$childs->each(function ($cat) {
$cat->withFamilyTree();
});
}
return $childs;
}