knubbe
5 months ago
426
2
Laravel

Unique string attribute with special character

Posted 5 months ago by knubbe

I have a field registration in my migration file and it looks like this:

$table->string('registration')->unique();

but when I have similar, but not exactly the same one strings, it breaks. It looks like that the problem is with special char and this two strings are the same BG 863 ČŠ and BG 863 ČS but it should not be.

Please sign in or create an account to participate in this conversation.