id(); $table->foreignIdFor(Student::class)->constrained()->restrictOnDelete()->cascadeOnUpdate(); $table->foreignIdFor(Audition::class)->constrained()->restrictOnDelete()->cascadeOnUpdate(); $table->unique(['student_id','audition_id']); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('entries'); } };