integer('system_id'); $table->integer('options'); $table->foreign('system_id')->references('id')->on('systems'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('setups', function (Blueprint $table) { $table->dropForeign(['system_id']); $table->dropColumn(['system_id','options']); }); } }