database/migrations/2022_01_14_090609_unique_change_table_cat_pro.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::table('category_product', function (Blueprint $table) {
            $table->dropUnique(['category_id','product_id']);
        });
    }
public function down ( ) { Schema :: table ( 'category_product' , function ( Blueprint $ table ) { $ table -> dropUnique ( [ 'category_id' , 'product_id' ] ) ; } ) ; }
Reverse the migrations.
Reverse the migrations .
//