public function getSectionCountAttribute() { return Section::select(\DB::raw('count(id) as count'))->where('parent_id', $this->id)->value('count'); }