database/migrations/2018_11_26_121743_add_foreignkey_to_contacts_table.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::table('contacts', function (Blueprint $table) {
            $table->dropForeign(['user_id']);
            $table->dropColumn('user_id');
        });
    }
public function down ( ) { Schema :: table ( 'contacts' , function ( Blueprint $ table ) { $ table -> dropForeign ( [ 'user_id' ] ) ; $ table -> dropColumn ( 'user_id' ) ; } ) ; }
Reverse the migrations.
Reverse the migrations .