engine = 'InnoDB'; $table->charset = 'utf8'; $table->collation = 'utf8_unicode_ci'; $table->increments('id'); $table->string('guid', 50); $table->integer('users_id')->unsigned()->index('FK_users_inv'); $table->timestamps(); $table->foreign('users_id', 'FK_users_inv')->references('id')->on('users')->onUpdate('CASCADE')->onDelete('CASCADE'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('invitations'); } }