Skip to main content
+234 803-795-2621
Wed, 08/02/2017 - 14:07

Laravel 5.4 error: Specified key was too long

Laravel 5.4 made a change to the default database character set, and it’s now utf8mb4 which includes support for storing emojis (ideagrams and smileys used in electronic messages and web pages). This only affects new applications and as long as you are running MySQL v5.7.7 and higher you do not need to do anything.

But for those running MariaDB or older versions of MySQL you may hit this error when trying to run migrations:

Subscribe to Laravel 5

Are you ready to take your business global?

Request a quote
click here.