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 :: learndash edit profile link 
Php :: php bcrypt password verify 
Php :: how to get display name in wordpress 
Php :: array_column in php 
Php :: codeigniter update or create 
Php :: php combine values of two arrays 
Php :: array_filter first element php 
Php :: ci base url dynamic 
Php :: check if variable is set and not empty laravel 
Php :: phpspreadsheet CellProtection 
Php :: how to link image in laravel 
Php :: request update password laravel 
Php :: where with and and or in a laravel 
Php :: load-styles.php 403 
Php :: count_chars (PHP 4, PHP 5, PHP 7, PHP 8) count_chars — Return information about characters used in a string 
Php :: CSV File Read using PHP fgetcsv() 
Php :: convert Persian/Arabic numbers to English numbers PHP 
Php :: check what kind of file was uploaded php 
Php :: Entity of type "DoctrineCommonCollectionsArrayCollection" passed to the choice field must be managed. Maybe you forget to persist it in the entity manager? 
Php :: array search multidimensional php 
Php :: multiple submit button in php 
Php :: laravel carbon created_at date in current month 
Php :: get last element of array php 
Php :: magento 2 get number of cart items 
Php :: select option in laravel 
Php :: php PDO howto columns from table 
Php :: Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead. 
Php :: php regex replace to remove special characters and accented 
Php :: multi theme laravel 
Php :: how to delete item from array php 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =