increments('id'); $table->timestamps(); $table->string('name',50); }); Schema::table('veranstaltungen', function (Blueprint $table) { $table->integer('ort_id')->unsigned()->nullable(); $table->foreign('ort_id')->references('id')->on('orte'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('veranstaltungen', function (Blueprint $table) { $table->dropColumn('ort_id'); }); Schema::dropIfExists('orte'); } }