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.
For laravel 5.7 to 6.0
Steps to followed
App\Providers\AppServiceProvider.php
.use Illuminate\Support\Facades\Schema;
in top.Schema::defaultStringLength(191);
that all, Enjoy.
0 yorum