📌  相关文章
📜  语法错误或访问冲突:1071 指定的密钥太长;最大密钥长度为 1000 字节(SQL:alter table `users` 添加索引 `users_userable_type_userable_id_index`(`userable_type`, `userable_id`) - PHP 代码示例

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

代码示例1
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);
}