increments('id'); $table->integer('transid')->unsigned(); $table->integer('settlement_id')->unsigned(); $table->decimal('amount', 20, 2); $table->string('accno', 10); $table->string('accname', 100); $table->string('bankcode', 6); $table->string('narration', 100); $table->timestamps(); //Foreign keys $table->foreign('transid')->references('id')->on('transactions'); $table->foreign('settlement_id')->references('id')->on('settlements'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('settlement_details'); } }