SQLSTATE [42000]

To fix sqlstate [42000] error, as mentioned in Migrations, all you have to do is AppServiceProvider.php to edit your file and Boot to set a default string length within the method:

use Illuminate\Support\Facades\Schema;public function boot(){ Schema::defaultStringLength(191);}


KARABAY A, 2021 . SQLSTATE [42000],


(Accessed December 30, 2018).

  Share this post

Comments (0)


Sign up for the email newsletter to be the first to know about my blog posts