database/migrations/2020_02_28_095516_create_messages_table.php
/**
     * Reverse the migrations.
     *
     * @return void
     */
Reverse the migrations.
@return void
Reverse the migrations . @return void
public function down()
    {
        Schema::table('messages',function (Blueprint $table){
        $table->dropForeign('messages_user_id_foreign');
        });
        Schema::dropIfExists('messages');
    }
public function down ( ) { Schema :: table ( 'messages' , function ( Blueprint $ table ) { $ table -> dropForeign ( 'messages_user_id_foreign' ) ; } ) ; Schema :: dropIfExists ( 'messages' ) ; }
Reverse the migrations.
Reverse the migrations .