bigIncrements('id'); $table->integer('subject_id'); $table->date('date'); $table->timestamps(); $table->foreign('subject_id')->references('id')->on('subjects'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('classes'); } }