Answers for "pdoexception::("sqlstate[42000]: syntax error or access violation: 1071 specified key was too long; max key length is 1000 bytes") i laravel"

PHP
18

ERROR 1071 (42000) at line 76: Specified key was too long; max key length is 767 bytes laravel

use IlluminateSupportFacadesSchema;

public function boot()
{
    Schema::defaultStringLength(191);
}
Posted by: Guest on April-29-2020

Code answers related to "pdoexception::("sqlstate[42000]: syntax error or access violation: 1071 specified key was too long; max key length is 1000 bytes") i laravel"

Browse Popular Code Answers by Language