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