Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Syntax error or access violation: 1071 Specified key was too long;

// Para resolver isso siga os passos abaixo:

// Edite o arquivo appProvidersAppServiceProvider.php
// Adicione o namespace use IlluminateSupportFacadesSchema;
// Dentro do método boot adicione Schema::defaultStringLength(191);
// Resultado final do arquivo:

use IlluminateSupportFacadesSchema;

public function boot()
{
    Schema::defaultStringLength(191);
}
Source by pt.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Syntax #error #access #Specified #key
ADD COMMENT
Topic
Name
9+3 =