id(); $table->foreignId('page_id')->constrained()->cascadeOnDelete(); $table->foreignId('block_id')->constrained()->cascadeOnDelete(); $table->unsignedInteger('sort_order')->default(0); // позиция блока на странице $table->unique(['page_id', 'block_id']); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('page_sections'); } };