dropForeign(['server_id']); $table->foreign('server_id')->references('id')->on('servers')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('tasks', function (Blueprint $table) { $table->dropForeign(['server_id']); $table->foreign('server_id')->references('id')->on('servers'); }); } }