Posted inFrameworks Laravel
Syntax error or access violation: 1071 Specified key was too long
Error come while migrate command run on laravel SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table users add unique users_email_unique(email)) Solution Go to file: /app/Providers/AppServiceProvider.php and import schema namespace use Illuminate\Support\Facades\Schema; Add below line under boot() function…