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
+58 -4
View File
@@ -525,10 +525,10 @@ class SettingSeeder extends Seeder
[
'key' => 'social_links',
'value' => json_encode([
'facebook' => '',
'twitter' => '',
'instagram' => '',
'linkedin' => '',
'facebook' => 'https://facebook.com/',
'twitter' => 'https://twitter.com/',
'instagram' => 'https://instagram.com/',
'linkedin' => 'https://linkedin.com/',
'youtube' => '',
'tiktok' => '',
'github' => '',
@@ -541,6 +541,60 @@ class SettingSeeder extends Seeder
'is_public' => true,
'is_active' => true,
],
// ==========================================
// FRONTEND LAYOUT AYARLARI (layout)
// ==========================================
[
'key' => 'default_meta_title',
'value' => 'Truncgil Citrus - Modern Web Çözümleri',
'type' => 'string',
'group' => 'layout',
'label' => 'Varsayılan Meta Başlık',
'description' => 'Sayfalarda özel meta başlık yoksa kullanılacak',
'is_public' => true,
'is_active' => true,
],
[
'key' => 'default_meta_description',
'value' => 'Yenilikçi teknoloji çözümleri ile geleceği şekillendiriyoruz',
'type' => 'text',
'group' => 'layout',
'label' => 'Varsayılan Meta Açıklama',
'description' => 'Sayfalarda özel meta açıklama yoksa kullanılacak',
'is_public' => true,
'is_active' => true,
],
[
'key' => 'default_meta_image',
'value' => 'assets/img/demos/f1.png',
'type' => 'string',
'group' => 'layout',
'label' => 'Varsayılan Meta Görsel',
'description' => 'Open Graph için varsayılan görsel',
'is_public' => true,
'is_active' => true,
],
[
'key' => 'logo_path',
'value' => 'assets/img/truncgil-yatay.svg',
'type' => 'string',
'group' => 'layout',
'label' => 'Logo Yolu',
'description' => 'Header\'da görünecek logo',
'is_public' => true,
'is_active' => true,
],
[
'key' => 'favicon_path',
'value' => 'assets/img/favicon.ico',
'type' => 'string',
'group' => 'layout',
'label' => 'Favicon Yolu',
'description' => 'Tarayıcı favicon',
'is_public' => true,
'is_active' => true,
],
// ==========================================
// SEO AYARLARI (seo)