The cuboid volume formula is:
\[
\text{Volume} = \text{Length} \times \text{Width} \times \text{Height}
\]
The given volume expression \( x^3 - 7x + 6 \) factors as:
\[
x^3 - 7x + 6 = (x - 1)(x^2 + x - 6)
\]
Factoring \( x^2 + x - 6 \):
\[
x^2 + x - 6 = (x + 3)(x - 2)
\]
The complete factorization of the volume expression is:
\[
x^3 - 7x + 6 = (x - 1)(x - 2)(x + 3)
\]
The longest side corresponds to the largest factor, \( x + 3 \). Thus, the answer is \( x + 3 \).