For laravel 5.7 to 6.0
Steps to followed
- Go to
App\Providers\AppServiceProvider.php
. - Add this to provider
use Illuminate\Support\Facades\Schema;
in top. - Inside the Boot function Add this
Schema::defaultStringLength(191);
that all, Enjoy.
https://stackoverflow.com/a/51039039/2132069
0 yorum