Data too long for column for "string"

I already understand that the error is because a string that is too long was entered and that it can be solved, for example, by adding "->maxLength(255)".

However, my question is, shouldn't the maximum be 255 by default? 🤔
image.png
image.png
Was this page helpful?