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

📅  最后修改于: 2022-03-11 14:54:10.997000             🧑  作者: Mango

代码示例6
Update your /app/Providers/AppServiceProvider.php to contain:

use Illuminate\Support\Facades\Schema;

/**
 * Bootstrap any application services.
 *
 * @return void
 */
public function boot()
{
    Schema::defaultStringLength(191);
}