1071 Specified key was too long;

If you use an older Version of mySQL or MariaDB Laravel throws an error on the first migration on your database. Thats cause the defaultStringLentth needs to be set to a maximum length of 191 characters.

Add this to your AppServiceProvider.php File and rerun your migration

Dont forget to add

Leave a Reply

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