Laravel Database Migration Error Key too long

When doing a database migration on Laravel, i get following error

This is because MariaDB use different UTF8 format.

To fix, edit file

Inside, find

Replace with

You will also need to add

here is how my file look like after editing.

Laravel

Add a Comment

Your email address will not be published. Required fields are marked *