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