Fix error 1071 Specified key was too long after change AppServiceProvider.php
When get error: [Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users add unique users_email_unique(email)) Try below first: If any body facing same problem, Please follow the below steps to fix the issue: 1. Update the “config/database.php” for ‘mysql’ ‘engine’ => null, with ‘engine’ …