未分類 How to solve SQLSTATE 42000 error in Laravel 26 7 月, 2019 / 在〈How to solve SQLSTATE 42000 error in Laravel〉中留言功能已關閉 To solve this error, locate app/Providers/AppServiceProvider.php and add Schema::defaultStringLength(191); in boot method as following. use Illuminate\Support\Facades\Schema; public function boot() { Schema::defaultStringLength(191); }