Mengatasi Error Saat Migrate Auth Laravel 5.8
Erronya = SQLSTATE[42000] fix not working for Laravel 5.8
buka file 'App\Providers\AppServiceProvider'
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Schema; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function register() { // } /** * Bootstrap any application services. * * @return void */ public function boot() { // Fix for MySQL < 5.7.7 and MariaDB < 10.2.2 // https://laravel.com/docs/master/migrations#creating-indexes Schema::defaultStringLength(191); } }
tambahkan baris yang berwarna merah
jalankan
php artisan make:auth
- execute
php artisan migrate
Sumber : Github