public function scopeSearchByTag(Builder $query, ?string $search = null): Builder 	{ 		return $search ? $query->whereHas('tags', static function (object $query) use ($search): void { 			$query->whereHas('tag', static function (object $query) use ($search): void { 				$query->where('name', 'like', $search); 			}); 		}) : $query; 	}