id()->index(); $table->bigInteger('sender_id')->unsigned(); $table->bigInteger('receiver_id')->unsigned(); $table->unsignedTinyInteger('status')->default(0)->comment('0 : Sent 1 : Accepted 2 : Declined'); $table->timestamps(); $table->softDeletes(); $table->foreign('sender_id')->references('id')->on('users'); $table->foreign('receiver_id')->references('id')->on('users'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('requests'); } }