mini-aspire/database/migrations/2021_06_30_104617_add_unique_on_repayments_table.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::table('repayments', function (Blueprint $table) {
            $table->dropUnique(['loan_id', 'pay_date']);
        });
    }
public function down ( ) { Schema :: table ( 'repayments' , function ( Blueprint $ table ) { $ table -> dropUnique ( [ 'loan_id' , 'pay_date' ] ) ; } ) ; }
Reverse the migrations.
Reverse the migrations .