Files
citrus/database/seeders/WebDevelopmentPageSeeder.php
T

53 lines
2.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace Database\Seeders;
use App\Models\Page;
use App\Models\User;
use Illuminate\Database\Seeder;
class WebDevelopmentPageSeeder extends Seeder
{
/**
* @var array<string, string>
*/
protected array $englishTranslations = [
'Web Uygulamaları' => 'Web Applications',
'Trunçgil Teknoloji olarak; Go, Rust, .NET, Swift, Android, Kotlin, Flutter, Three.js, React ve Vue gibi tüm modern teknolojilerle ölçeklenebilir ve güvenli web ve mobil çözümler geliştiriyoruz.' => 'At Trunçgil Teknoloji, we develop scalable and secure web and mobile solutions with all modern technologies such as Go, Rust, .NET, Swift, Android, Kotlin, Flutter, Three.js, React, and Vue.',
'Web Uygulamaları | Trunçgil Teknoloji' => 'Web Applications | Trunçgil Teknoloji',
'Trunçgil Teknoloji ile Go, Rust, .NET, Swift, Android, Kotlin, Flutter, Three.js, React, Vue, Angular, Node.js ve Django ile ölçeklenebilir web ve mobil çözümler, PWA, WebSocket ve Kubernetes bulut sistemleri.' => 'Scalable web and mobile solutions, PWA, WebSockets, and Kubernetes cloud systems with Go, Rust, .NET, Swift, Android, Kotlin, Flutter, Three.js, React, Vue, Angular, Node.js, and Django with Trunçgil Teknoloji.',
];
public function run(): void
{
$author = User::query()->first();
if (!$author) {
$this->command?->warn('Kullanıcı bulunamadı, seeder atlandı.');
return;
}
Page::updateOrCreate(
['slug' => 'web-uygulamalari'],
[
'author_id' => $author->id,
'title' => 'Web Uygulamaları',
'excerpt' => 'Trunçgil Teknoloji olarak; Go, Rust, .NET, Swift, Android, Kotlin, Flutter, Three.js, React ve Vue gibi tüm modern teknolojilerle ölçeklenebilir ve güvenli web ve mobil çözümler geliştiriyoruz.',
'content' => '',
'template' => 'services.web-development',
'featured_image' => null,
'custom_header_blade' => 'partials.header-web-development',
'status' => 'published',
'is_homepage' => false,
'show_in_menu' => true,
'sort_order' => 16,
'published_at' => now(),
'meta_title' => 'Web Uygulamaları | Trunçgil Teknoloji',
'meta_description' => 'Trunçgil Teknoloji ile Go, Rust, .NET, Swift, Android, Kotlin, Flutter, Three.js, React, Vue, Angular, Node.js ve Django ile ölçeklenebilir web ve mobil çözümler, PWA, WebSocket ve Kubernetes bulut sistemleri.',
]
);
$this->command?->info('✅ Web Uygulamaları sayfası başarıyla oluşturuldu.');
}
}