change in Get root category
This commit is contained in:
parent
e9608d87ef
commit
0e0cd7237a
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue