Laravel – Specified key was too long


Edit app/Providers/AppServiceProvider.php

Add this line under namespace declaration

use Illuminate\Support\Facades\Schema;

Add this line on boot function

Schema::defaultStringLength(191);

Advertisements