Schema::table('posts', function (Blueprint $table) { $table->unsignedInteger('user_id'); $table->foreign('user_id')->references('id')->on('users'); });
$table->dropForeign('posts_user_id_foreign');
DB::statement("ALTER TABLE <table name> ADD <column name> MEDIUMBLOB");