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