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