fixed sub category issues

This commit is contained in:
Denis Duliçi
2022-07-21 11:46:18 +03:00
parent e5a68d8450
commit b93a5fcd49
10 changed files with 149 additions and 121 deletions

View File

@ -17,6 +17,10 @@ class Category implements Scope
*/
public function apply(Builder $builder, Model $model)
{
/*if (request()->expectsJson()) {
return;
}*/
$builder->whereNull('parent_id');
}
}