Laravel MariaDB: Specified key was too long error

AppServiceProvider.php

use Illuminate\Support\Facades\Schema;

public function boot()
{
    Schema::defaultStringLength(191);
}

Добавить комментарий