id(); $table->foreignId('site_id')->constrained()->cascadeOnDelete(); $table->string('slug'); $table->string('title'); $table->string('menu_label')->nullable(); $table->string('menu_location')->default('main'); $table->unsignedSmallInteger('sort_order')->default(0); $table->boolean('is_published')->default(true); $table->json('sections')->nullable(); $table->string('seo_title')->nullable(); $table->string('seo_description')->nullable(); $table->timestamps(); $table->unique(['site_id', 'slug']); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('pages'); } };