Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Syntax error or access violation: 1071 La clé est trop longue. Longueur maximale: 1000

//Add in app/Providers/AppServiceProvider.php :

use IlluminateSupportFacadesSchema;

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

// In case it does not suits your needs, let's add 'engine' => 'InnoDB', to config/database.php (mysql array)
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #Syntax #error #access #La #est #trop #Longueur
ADD COMMENT
Topic
Name
2+7 =