feat: add technology logos, implement WebDevelopmentPageSeeder, and update related service views and translations.
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<?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.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user