0
[Illuminate \ Database \ QueryException] SQLSTATE [42000]:語法錯誤 或訪問衝突:1071指定的鍵太長;最大密鑰長度 是1000個字節(SQL:改變表
translations
添加獨特translations_table_name_column_name_foreign_key_locale_unique
(table_ name
,column_name
,foreign_key
,locale
))voyager php artisan voyager:安裝--with-dummy錯誤[學說\ DBAL \驅動\ PDOException] SQLSTATE [42000]:語法錯誤或訪問違規:1071指定密鑰太長;最大密鑰長度爲1000字節
[PDOException] SQLSTATE [42000]:語法錯誤或訪問衝突:1071指定的密鑰太長;最大密鑰長度是1000字節
AppServiceProvider.php
這種方式沒有奏效我不能修復這個錯誤任何方式來解決它?
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::`defaultStringLength`(191);
}