Laravel Specificed Key terlalu panjang
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
Distinct Dunlin
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
use Illuminate\Support\Facades\Schema;
public function boot()
{
Schema::defaultStringLength(191);
}
#Inside config/database.php, replace this line for mysql
//find
'engine' => null',
//replace with
'engine' => 'InnoDB ROW_FORMAT=DYNAMIC',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',