id(); $table->foreignIdFor(YearPeriod::class)->constrained()->cascadeOnDelete(); $table->string("name"); $table->date("date")->unique(); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists("holidays"); } };