fixed sub category issues
This commit is contained in:
@ -17,6 +17,10 @@ class Category implements Scope
|
||||
*/
|
||||
public function apply(Builder $builder, Model $model)
|
||||
{
|
||||
/*if (request()->expectsJson()) {
|
||||
return;
|
||||
}*/
|
||||
|
||||
$builder->whereNull('parent_id');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user