database/migrations/2021_12_31_221547_commande_categorie.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::table('commande_categorie', function(Blueprint $table){
            $table->dropForeign('commande_id');
            $table->dropForeign('categorie_id');
        });
        Schema::dropIfExists('commande_categorie');
    }
public function down ( ) { Schema :: table ( 'commande_categorie' , function ( Blueprint $ table ) { $ table -> dropForeign ( 'commande_id' ) ; $ table -> dropForeign ( 'categorie_id' ) ; } ) ; Schema :: dropIfExists ( 'commande_categorie' ) ; }
Reverse the migrations.
Reverse the migrations .