[Illuminate\Database\QueryException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes ( SQL: alter table
translations
add uniquetranslations_table_name_column_name_foreign_key_locale_unique
(table_ name
,column_name
,foreign_key
,locale
))[Doctrine\DBAL\Driver\PDOException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes
[PDOException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes
AppServiceProvider.php
this way did not worked I can not fix this error any way to fix it?
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::`defaultStringLength`(191);
}