increments('id'); $table->unsignedMediumInteger('userid')->default(0); $table->unsignedMediumInteger('friendid')->default(0); $table->unique(['userid', 'friendid'], 'userfriend'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('friends'); } }