increments('id'); $table->unsignedInteger('first'); $table->unsignedInteger('end'); $table->timestamps(); $table->foreign('first')->references('id')->on('users')->onDelete('cascade'); $table->foreign('end')->references('id')->on('users')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('groups'); } }