📌  相关文章
📜  语法错误或访问冲突:1071 指定的密钥太长;最大密钥长度为 1000 字节(SQL:alter table - 不管代码示例

📅  最后修改于: 2022-03-11 15:00:14.033000             🧑  作者: Mango

代码示例3
Path : App/Providers/AppServiceProvider

Schema::defaultStringLength(191);
in AppServiceProvider didn't work for me. What worked for was editing the database.php file in config folder. Just edit

'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
to

'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
and it should work, although you will be unable to store extended multibyte characters like emoji.