Merge pull request #1146 from prateek-webkul/dev

change in Get root category
This commit is contained in:
Jitendra Singh 2019-07-01 18:12:18 +05:30 committed by GitHub
commit 47d375b264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class CategoryRepository extends Repository
*/
public function getRootCategories()
{
return $this->model::withDepth()->having('depth', '=', 0)->get();
return $this->getModel()->where('parent_id', NULL)->get();
}
/**