Add sections and data fields to Page model, create migration for sections column, and implement PageSeeder for initial page data: Enhanced the Page model with new fields for sections and data, added a migration to include a JSON column for sections in the pages table, and created a PageSeeder to populate the database with example pages including structured sections for content management.

This commit is contained in:
Ümit Tunç
2025-10-30 15:55:32 -03:00
parent 05eb3bf34a
commit 4a98a6d8f0
8 changed files with 664 additions and 263 deletions
+2 -1
View File
@@ -13,9 +13,10 @@ class DatabaseSeeder extends Seeder
*/
public function run(): void
{
// Settings seed
// Settings & Pages seed
$this->call([
SettingSeeder::class,
PageSeeder::class,
]);
// User::factory(10)->create();