This commit is contained in:
rahulshukla-home 2020-05-27 22:09:17 +05:30
parent b8417ff7d3
commit e52cba981f
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class CategoryRepository extends Repository
}
return $categories[$id] = $id
? $this->model::orderBy('position', 'ASC')->where('status', 1)->descendantsOf($id)->toTree()
? $this->model::orderBy('position', 'ASC')->where('status', 1)->descendantsAndSelf($id)->toTree($id)
: $this->model::orderBy('position', 'ASC')->where('status', 1)->get()->toTree();
}