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