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);}

  Quote

KARABAY A, 2021 . SQLSTATE [42000],

https://www.karabayyazilim.com/blog/php/framework/laravel/sqlstate-42000-2020-05-31-174607

(Accessed December 30, 2018).


  Share this post

Comments (0)

Comment

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