Files
citrus/database/seeders/WebDevelopmentPageSeeder.php
T

53 lines
2.4 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; Three.js\'den Django\'ya, Node.js\'den React ve Vue\'ye kadar tüm modern teknolojilerle ölçeklenebilir web uygulamaları geliştiriyoruz.' => 'At Trunçgil Teknoloji, we develop scalable web applications with all modern technologies from Three.js to Django, Node.js to React and Vue.',
'Web Uygulamaları | Trunçgil Teknoloji' => 'Web Applications | Trunçgil Teknoloji',
'Trunçgil Teknoloji ile Three.js, React, Vue, Angular, Node.js ve Django ile ölçeklenebilir web uygulamaları, PWA, WebSocket ve Kubernetes bulut çözümleri.' => 'Scalable web applications, PWA, WebSockets, and Kubernetes cloud solutions with 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; Three.js\'den Django\'ya, Node.js\'den React ve Vue\'ye kadar tüm modern teknolojilerle ölçeklenebilir web uygulamaları 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 Three.js, React, Vue, Angular, Node.js ve Django ile ölçeklenebilir web uygulamaları, PWA, WebSocket ve Kubernetes bulut çözümleri.',
]
);
$this->command?->info('✅ Web Uygulamaları sayfası başarıyla oluşturuldu.');
}
}