Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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

// Inclure la facade "Schema"
use IlluminateSupportFacadesSchema;

// dans la méthode boot(), inclure la ligne suivante
public function boot()
{
    Schema::defaultStringLength(191);
}
Comment

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

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)
Comment

PREVIOUS NEXT
Code Example
Php :: composer error installation 
Php :: file delete in laravel 
Php :: php split string along spaces 
Php :: +1 month php 
Php :: date php 
Php :: php foreach first element 
Php :: php curl post application/x-www-form-urlencoded 
Php :: twig if else 
Php :: laravel module create controller 
Php :: php filter email 
Php :: wp get image alt 
Php :: php set content type pdf 
Php :: what is app_env in laravel 
Php :: laravel blade errors all 
Php :: laravel response redirect 
Php :: php ellipsis 
Php :: php mysql count rows 
Php :: remove public in laravel hosting 
Php :: codeigniter dump query 
Php :: curl error handling 
Php :: php mysql datetime 
Php :: passed to LcobucciJWTSignerHmac::doVerify() must be an instance of LcobucciJWTSignerKey, null given, 
Php :: laravel convert timestamp to date 
Php :: laravel get list of columns in a table 
Php :: rename file php 
Php :: localhost install new plugin ftp wp 
Php :: create new laravel project with specific version 
Php :: how to get javascript variable value in php 
Php :: General error: 1215 Cannot add foreign key constraint laravel 
Php :: php set header content type html 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =