public function scopeSearchByTagIds(Builder $query, ?array $tags = []): Builder 	{ 		return $tags ? $query->whereHas('tags', static function (object $query) use ($tags): void { 			$query->whereIn('tag_id', $tags); 		}) : $query; 	}