// Inclure la facade "Schema"
use IlluminateSupportFacadesSchema;
// dans la méthode boot(), inclure la ligne suivante
public function boot()
{
Schema::defaultStringLength(191);
}
//Add in app/Providers/AppServiceProvider.php :
use IlluminateSupportFacadesSchema;
public function boot()
{
Schema::defaultStringLength(191);
}
//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)