bigInteger('discount_id')->default(0)->index(); $table->bigInteger('customer_id')->default(0)->index(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('discount_customer',function (Blueprint $table) { $table->dropForeign(['discount_id','customer_id']); $table->drop(); }); } };