integer('lead_id')->unsigned()->nullable(); $table->foreign('lead_id')->references('id')->on('leads'); $table->integer('contact_id')->unsigned()->nullable(); $table->foreign('contact_id')->references('id')->on('contacts'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('bap_calendar_event', function (Blueprint $table) { $table->dropColumn(['lead_id','contact_id']); }); } }