Laravel & InnoDB Laravel & InnoDB laravel laravel

Laravel & InnoDB


You can edit your /config/database.php file, search for mysql entry and change:

'engine' => null,

to

'engine' => 'InnoDB',

This saves you from adding $table->engine = "InnoDB"; for each of your Schemas ;)


Define engine like this

  Schema::create("models", function(Blueprint $table) {            $table->engine = "InnoDB";  }