在测试队列中运用artisan命令行 php artisan queue:table php artisan migrate时出现 SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes Change database.php which is in config folder where it says 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', I changed these to 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci',