id(); $table->bigInteger('responseFormID')->unsigned(); $table->longText('responseData'); $table->timestamps(); // A better way would be to link responses directly to vacancies, that subsquently have a form $table->foreign('responseFormID') ->references('id') ->on('forms'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('responses'); } }