change in Get root category

This commit is contained in:
prateek srivastava 2019-07-01 18:07:43 +05:30
parent e9608d87ef
commit 0e0cd7237a
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();
}
/**