public function scopeFilterCategories(Builder $query, array $categories, string $lang): Builder 	{ 		if (!$categories) { 			return $query; 		}  		$category_ids = Category::whereIn('slug->' . $lang, $categories)->select('id')->get();  		return $query->whereIn('category_id', $category_ids); 	}