use Illuminate\Support\Facades\Schema; public function boot() { Schema::defaultStringLength(191); }
use Illuminate\Database\Schema\Builder; // Import Builder where defaultStringLength method is defined function boot() { Builder::defaultStringLength(191); // Update defaultStringLength }
'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci',
'charset' => 'utf8', 'collation' => 'utf8_unicode_ci',