max key length is 767 bytes

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

max key length is 767 bytes

文章 yehlu »

https://laravel-news.com/laravel-5-4-key-too-long-error

app/Providers/AppServiceProvider.php

代碼: 選擇全部

use Illuminate\Support\Facades\Schema;

public function boot()
{
    Schema::defaultStringLength(191);
}
回覆文章

回到「laravel」