string('primary_color')->nullable(); $table->string('secondary_color')->nullable(); }); Schema::table('payments', function ($table) { $table->dropForeign('payments_invoice_id_foreign'); $table->foreign('invoice_id')->references('id')->on('invoices')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('accounts', function ($table) { $table->dropColumn('primary_color'); $table->dropColumn('secondary_color'); }); } }