feat: Add Logos page, refactor Testimonials to RelationManager, and improve designs

This commit is contained in:
Muhammet Güler
2026-02-08 04:54:32 +03:00
parent 33c1ffe779
commit 177ebff119
24 changed files with 863 additions and 573 deletions
+41
View File
@@ -0,0 +1,41 @@
<?php
namespace Database\Seeders;
use App\Models\Page;
use App\Models\User;
use Illuminate\Database\Seeder;
class LogosPageSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$author = User::first();
if (!$author) return;
$corporate = Page::where('slug', 'kurumsal')->first();
if (!$corporate) return;
Page::updateOrCreate(
['slug' => 'logolarimiz'],
[
'author_id' => $author->id,
'parent_id' => $corporate->id,
'title' => 'Logolarımız',
'excerpt' => 'Kurumsal logolarımız ve kullanım standartları',
'content' => null,
'template' => 'corporate.logos',
'status' => 'published',
'is_homepage' => false,
'show_in_menu' => true,
'sort_order' => 6,
'published_at' => now(),
]
);
$this->command->info('✅ Logolarımız sayfası başarıyla eklendi!');
}
}