You can have up to 255 characters in a varchar field, whichever encoding you use.
Nov 24, 2014
6
Level 1
Varchar max size
Hi,
I want to make sure that I fully understand Schema builder and string max sizes.
If I add column like this:
$table->string('name', 60);
Does this means that I can push 60 characters in UTF-8 to that column?
I read on the stackoverflow that UTF-8 character can have from 1-3 (I guess) bytes. So it means that the name string will contain max 20 characters in some special case?
Please or to participate in this conversation.