database/migrations/9999_02_07_103624_add_foreign_keys.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::table('posts', function (Blueprint $table) {
            $table->dropForeign('posts_user', 'posts_cat');
        });
        Schema::table('post_reaction', function (Blueprint $table) {
            $table -> dropForeign('post_reaction');
            $table -> dropForeign('reaction_post');
        });
    }
public function down ( ) { Schema :: table ( 'posts' , function ( Blueprint $ table ) { $ table -> dropForeign ( 'posts_user' , 'posts_cat' ) ; } ) ; Schema :: table ( 'post_reaction' , function ( Blueprint $ table ) { $ table -> dropForeign ( 'post_reaction' ) ; $ table -> dropForeign ( 'reaction_post' ) ; } ) ; }
Reverse the migrations.
Reverse the migrations .