public function scopeFilterCategory(Builder $query, ?Category $category = null): Builder 	{ 		return $category instanceof Category ? $query->whereIn('category_id', [$category->id, ...$category->children()->pluck('id')]) : $query; 	}