id(); $table->string('name')->unique(); $table->timestamps(); }); Schema::create('content_element_pillar', function (Blueprint $table) { $table->foreignId('content_element_id')->constrained()->cascadeOnDelete(); $table->foreignId('pillar_id')->constrained()->restrictOnDelete(); $table->primary(['content_element_id', 'pillar_id']); }); } public function down(): void { Schema::dropIfExists('content_element_pillar'); Schema::dropIfExists('pillars'); } };