increments('id'); $table->timestamps(); $table->integer('program_id')->nullable()->unsigned(); $table->foreign('program_id') ->references('id') ->on('programs') ->onDelete('cascade') ->onUpdate('cascade'); $table->integer('criterion_id')->unsigned(); $table ->foreign('criterion_id') ->references('id') ->on('new_criteria') ->onDelete('cascade') ->onUpdate('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('program_criterion'); } }