id(); $table->unsignedBigInteger('father_id'); $table->foreign('father_id')->references('id')->on('fathers')->onDelete('cascade'); $table->unsignedBigInteger('child_id'); $table->foreign('child_id')->references('id')->on('children')->onDelete('cascade'); $table->dateTime('hire_at')->useCurrent(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('father_relations'); } }