id()->primary(); $table->string('name'); $table->foreignId('project_id'); $table->timestamps(); $table->unique(['name', 'project_id']); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('environments'); } };