database/migrations/2021_12_18_023317_create_customers_table.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::disableForeignKeyConstraints();
        Schema::table("customers", function (Blueprint $table) {
            $table->dropForeign(["created_by"]);
        });
        Schema::dropIfExists("customers");
        Schema::enableForeignKeyConstraints();
    }
public function down ( ) { Schema :: disableForeignKeyConstraints ( ) ; Schema :: table ( " customers " , function ( Blueprint $ table ) { $ table -> dropForeign ( [ " created_by " ] ) ; } ) ; Schema :: dropIfExists ( " customers " ) ; Schema :: enableForeignKeyConstraints ( ) ; }
Reverse the migrations.
Reverse the migrations .