My Blog Posts

SQLSTATE [42000]

SQLSTATE [42000]


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

use Illuminate\Support\Facades\Schema;

public function boot()
{
    Schema::defaultStringLength(191);
}



Share this article


Comments (0)

Comment