feat: add sample blog posts to BlogSeeder

This commit is contained in:
Ümit Tunç
2026-05-25 05:23:56 +03:00
parent 22c5e40cfc
commit a037917f16
+26 -26
View File
@@ -78,8 +78,8 @@ class BlogSeeder extends Seeder
] ]
); );
// Önceki blog yazılarını ve ilgili çevirilerini temizle // Önceki blog yazılarını ve ilgili çevirilerini temizle (soft-deleted dahil) ve force-delete yap
$existingBlogs = Blog::whereIn('slug', [ $existingBlogs = Blog::withTrashed()->whereIn('slug', [
'bulut-bilisim-kubernetes-kurumsal-mimari', 'bulut-bilisim-kubernetes-kurumsal-mimari',
'mikroservislerde-api-gateway-guvenlik', 'mikroservislerde-api-gateway-guvenlik',
'dagitik-sistemlerde-veri-tutarliligi', 'dagitik-sistemlerde-veri-tutarliligi',
@@ -107,7 +107,7 @@ class BlogSeeder extends Seeder
foreach ($existingBlogs as $exPost) { foreach ($existingBlogs as $exPost) {
$exPost->translations()->delete(); $exPost->translations()->delete();
$exPost->delete(); $exPost->forceDelete();
} }
// 3. Blog Yazıları & Çevirileri Tanımları // 3. Blog Yazıları & Çevirileri Tanımları
@@ -116,7 +116,7 @@ class BlogSeeder extends Seeder
[ [
'category_id' => $categoryTech->id, 'category_id' => $categoryTech->id,
'slug' => 'bulut-bilisim-kubernetes-kurumsal-mimari', 'slug' => 'bulut-bilisim-kubernetes-kurumsal-mimari',
'featured_image' => 'blog/ai_vision_dashboard.png', 'featured_image' => 'blog/blog_post_1.jpg',
'tags' => ['Kubernetes', 'Bulut Bilişim', 'Enterprise', 'Docker', 'Scalability'], 'tags' => ['Kubernetes', 'Bulut Bilişim', 'Enterprise', 'Docker', 'Scalability'],
'is_featured' => true, 'is_featured' => true,
'tr' => [ 'tr' => [
@@ -182,9 +182,9 @@ spec:
[ [
'category_id' => $categoryTech->id, 'category_id' => $categoryTech->id,
'slug' => 'mikroservislerde-api-gateway-guvenlik', 'slug' => 'mikroservislerde-api-gateway-guvenlik',
'featured_image' => 'blog/ai_vision_dashboard.png', 'featured_image' => 'blog/blog_post_2.jpg',
'tags' => ['API Gateway', 'Microservices', 'OAuth2', 'Kong', 'Security'], 'tags' => ['API Gateway', 'Microservices', 'OAuth2', 'Kong', 'Security'],
'is_featured' => false, 'is_featured' => true,
'tr' => [ 'tr' => [
'title' => 'Mikroservis Mimarilerinde API Gateway ve Uçtan Uca Güvenlik Protokolleri', 'title' => 'Mikroservis Mimarilerinde API Gateway ve Uçtan Uca Güvenlik Protokolleri',
'excerpt' => 'Mikroservis geçişlerinde veri güvenliğini garanti altına almak amacıyla, Kong API Gateway ve OAuth2/OIDC protokollerini harmanlayarak kurduğumuz yüksek güvenlikli veri hattını inceliyoruz.', 'excerpt' => 'Mikroservis geçişlerinde veri güvenliğini garanti altına almak amacıyla, Kong API Gateway ve OAuth2/OIDC protokollerini harmanlayarak kurduğumuz yüksek güvenlikli veri hattını inceliyoruz.',
@@ -231,7 +231,7 @@ spec:
[ [
'category_id' => $categoryTech->id, 'category_id' => $categoryTech->id,
'slug' => 'dagitik-sistemlerde-veri-tutarliligi', 'slug' => 'dagitik-sistemlerde-veri-tutarliligi',
'featured_image' => 'blog/ai_vision_dashboard.png', 'featured_image' => 'blog/blog_post_3.jpg',
'tags' => ['Saga Pattern', 'Distributed Systems', 'Apache Kafka', 'Database', 'Consistency'], 'tags' => ['Saga Pattern', 'Distributed Systems', 'Apache Kafka', 'Database', 'Consistency'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -280,7 +280,7 @@ spec:
[ [
'category_id' => $categoryTech->id, 'category_id' => $categoryTech->id,
'slug' => 'devops-ci-cd-otomasyon-sifir-kesinti', 'slug' => 'devops-ci-cd-otomasyon-sifir-kesinti',
'featured_image' => 'blog/ai_vision_dashboard.png', 'featured_image' => 'blog/blog_post_4.jpg',
'tags' => ['DevOps', 'CI/CD', 'GitHub Actions', 'ArgoCD', 'GitOps'], 'tags' => ['DevOps', 'CI/CD', 'GitHub Actions', 'ArgoCD', 'GitOps'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -329,7 +329,7 @@ spec:
[ [
'category_id' => $categoryTech->id, 'category_id' => $categoryTech->id,
'slug' => 'buyuk-veri-analitigi-apache-spark', 'slug' => 'buyuk-veri-analitigi-apache-spark',
'featured_image' => 'blog/ai_vision_dashboard.png', 'featured_image' => 'blog/blog_post_5.jpg',
'tags' => ['Apache Spark', 'Big Data', 'Hadoop', 'Analytics', 'Real-Time'], 'tags' => ['Apache Spark', 'Big Data', 'Hadoop', 'Analytics', 'Real-Time'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -380,7 +380,7 @@ spec:
[ [
'category_id' => $categoryAi->id, 'category_id' => $categoryAi->id,
'slug' => 'web-uygulamalarinda-yolov10-bilgisayarli-goru', 'slug' => 'web-uygulamalarinda-yolov10-bilgisayarli-goru',
'featured_image' => 'blog/ai_vision_dashboard.png', 'featured_image' => 'blog/blog_post_6.jpg',
'tags' => ['Yapay Zeka', 'YOLOv10', 'PyTorch', 'WebRTC', 'Computer Vision'], 'tags' => ['Yapay Zeka', 'YOLOv10', 'PyTorch', 'WebRTC', 'Computer Vision'],
'is_featured' => true, 'is_featured' => true,
'tr' => [ 'tr' => [
@@ -429,7 +429,7 @@ spec:
[ [
'category_id' => $categoryAi->id, 'category_id' => $categoryAi->id,
'slug' => 'llm-rag-kurumsal-arama-motoru', 'slug' => 'llm-rag-kurumsal-arama-motoru',
'featured_image' => 'blog/ai_vision_dashboard.png', 'featured_image' => 'blog/blog_post_7.jpg',
'tags' => ['RAG', 'LLM', 'Vector DB', 'LangChain', 'Search'], 'tags' => ['RAG', 'LLM', 'Vector DB', 'LangChain', 'Search'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -478,7 +478,7 @@ spec:
[ [
'category_id' => $categoryAi->id, 'category_id' => $categoryAi->id,
'slug' => 'transformers-nlp-cok-dilli-destek-asistani', 'slug' => 'transformers-nlp-cok-dilli-destek-asistani',
'featured_image' => 'blog/ai_vision_dashboard.png', 'featured_image' => 'blog/blog_post_8.jpg',
'tags' => ['NLP', 'Transformers', 'HuggingFace', 'Customer Support', 'AI Agent'], 'tags' => ['NLP', 'Transformers', 'HuggingFace', 'Customer Support', 'AI Agent'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -527,7 +527,7 @@ spec:
[ [
'category_id' => $categoryAi->id, 'category_id' => $categoryAi->id,
'slug' => 'derin-ogrenme-genai-goruntu-sentezleme', 'slug' => 'derin-ogrenme-genai-goruntu-sentezleme',
'featured_image' => 'blog/ai_vision_dashboard.png', 'featured_image' => 'blog/blog_post_9.jpg',
'tags' => ['GenAI', 'Stable Diffusion', 'Deep Learning', 'PyTorch', 'Image Synthesis'], 'tags' => ['GenAI', 'Stable Diffusion', 'Deep Learning', 'PyTorch', 'Image Synthesis'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -576,7 +576,7 @@ spec:
[ [
'category_id' => $categoryAi->id, 'category_id' => $categoryAi->id,
'slug' => 'takviyeli-ogrenme-otonom-sistemler-karar', 'slug' => 'takviyeli-ogrenme-otonom-sistemler-karar',
'featured_image' => 'blog/ai_vision_dashboard.png', 'featured_image' => 'blog/blog_post_10.jpg',
'tags' => ['Reinforcement Learning', 'Autonomous Systems', 'Q-Learning', 'AI Decision'], 'tags' => ['Reinforcement Learning', 'Autonomous Systems', 'Q-Learning', 'AI Decision'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -627,7 +627,7 @@ spec:
[ [
'category_id' => $categoryMusic->id, 'category_id' => $categoryMusic->id,
'slug' => 'ai-demucs-ses-ayristirma-mimarisi', 'slug' => 'ai-demucs-ses-ayristirma-mimarisi',
'featured_image' => 'blog/ai_music_spectrogram.png', 'featured_image' => 'blog/blog_post_11.jpg',
'tags' => ['Müzik', 'Ses Ayrıştırma', 'Demucs', 'PyTorch', 'Audio Engine'], 'tags' => ['Müzik', 'Ses Ayrıştırma', 'Demucs', 'PyTorch', 'Audio Engine'],
'is_featured' => true, 'is_featured' => true,
'tr' => [ 'tr' => [
@@ -676,7 +676,7 @@ spec:
[ [
'category_id' => $categoryMusic->id, 'category_id' => $categoryMusic->id,
'slug' => 'web-audio-api-threejs-3d-spektrogram', 'slug' => 'web-audio-api-threejs-3d-spektrogram',
'featured_image' => 'blog/ai_music_spectrogram.png', 'featured_image' => 'blog/blog_post_12.jpg',
'tags' => ['WebGL', 'Three.js', 'Web Audio API', 'FFT', 'Visualizer'], 'tags' => ['WebGL', 'Three.js', 'Web Audio API', 'FFT', 'Visualizer'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -725,7 +725,7 @@ spec:
[ [
'category_id' => $categoryMusic->id, 'category_id' => $categoryMusic->id,
'slug' => 'dsp-webassembly-ses-efektleri', 'slug' => 'dsp-webassembly-ses-efektleri',
'featured_image' => 'blog/ai_music_spectrogram.png', 'featured_image' => 'blog/blog_post_13.jpg',
'tags' => ['WebAssembly', 'DSP', 'C++', 'Audio Worklet', 'Latency'], 'tags' => ['WebAssembly', 'DSP', 'C++', 'Audio Worklet', 'Latency'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -774,7 +774,7 @@ spec:
[ [
'category_id' => $categoryMusic->id, 'category_id' => $categoryMusic->id,
'slug' => 'ai-otomatik-mastering-akustik-analiz', 'slug' => 'ai-otomatik-mastering-akustik-analiz',
'featured_image' => 'blog/ai_music_spectrogram.png', 'featured_image' => 'blog/blog_post_14.jpg',
'tags' => ['Mastering', 'Acoustic Analysis', 'AI Music', 'Machine Learning', 'LUFS'], 'tags' => ['Mastering', 'Acoustic Analysis', 'AI Music', 'Machine Learning', 'LUFS'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -823,7 +823,7 @@ spec:
[ [
'category_id' => $categoryMusic->id, 'category_id' => $categoryMusic->id,
'slug' => 'midi-protokolu-enstruman-kontrolu', 'slug' => 'midi-protokolu-enstruman-kontrolu',
'featured_image' => 'blog/ai_music_spectrogram.png', 'featured_image' => 'blog/blog_post_15.jpg',
'tags' => ['MIDI', 'Web MIDI API', 'Synthesizer', 'Web Audio API', 'Browser'], 'tags' => ['MIDI', 'Web MIDI API', 'Synthesizer', 'Web Audio API', 'Browser'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -874,7 +874,7 @@ spec:
[ [
'category_id' => $categoryApp->id, 'category_id' => $categoryApp->id,
'slug' => 'iot-mobil-executorch-cihaz-ici-kestirimci-bakim', 'slug' => 'iot-mobil-executorch-cihaz-ici-kestirimci-bakim',
'featured_image' => 'blog/edge_ai_iot_sensor.png', 'featured_image' => 'blog/blog_post_16.jpg',
'tags' => ['Edge AI', 'IoT', 'ExecuTorch', 'Predictive Maintenance', 'C++'], 'tags' => ['Edge AI', 'IoT', 'ExecuTorch', 'Predictive Maintenance', 'C++'],
'is_featured' => true, 'is_featured' => true,
'tr' => [ 'tr' => [
@@ -896,7 +896,7 @@ spec:
'excerpt' => 'Internetunabhängige Anomalieerkennung direkt auf IoT-Chips und Smartphones mittels Metas neuem ExecuTorch-Compiler.', 'excerpt' => 'Internetunabhängige Anomalieerkennung direkt auf IoT-Chips und Smartphones mittels Metas neuem ExecuTorch-Compiler.',
'content' => '<h3>Die On-Device KI-Revolution</h3><p>Durch die Portierung von Modellen auf ExecuTorch reduzieren wir die Latenzzeit bei In-Situ-Sensorauswertungen auf unter 5ms.</p>', 'content' => '<h3>Die On-Device KI-Revolution</h3><p>Durch die Portierung von Modellen auf ExecuTorch reduzieren wir die Latenzzeit bei In-Situ-Sensorauswertungen auf unter 5ms.</p>',
'meta_title' => 'ExecuTorch Edge AI Instandhaltung | Trunçgil', 'meta_title' => 'ExecuTorch Edge AI Instandhaltung | Trunçgil',
'meta_description' => 'On-Device Anomalieerkennung mit ExecuTorch für die Industrie.' 'meta_description' => 'On-Device Anomalieerkennung mit ExecuTorch for die Industrie.'
], ],
'ar' => [ 'ar' => [
'title' => 'الذكاء الاصطناعي الطرفي (Edge AI) على الهاتف المحمول وإنترنت الأشياء: الصيانة التنبؤية على الأجهزة باستخدام ExecuTorch', 'title' => 'الذكاء الاصطناعي الطرفي (Edge AI) على الهاتف المحمول وإنترنت الأشياء: الصيانة التنبؤية على الأجهزة باستخدام ExecuTorch',
@@ -923,7 +923,7 @@ spec:
[ [
'category_id' => $categoryApp->id, 'category_id' => $categoryApp->id,
'slug' => 'flutter-native-entegrasyonu-mobil-haritalama', 'slug' => 'flutter-native-entegrasyonu-mobil-haritalama',
'featured_image' => 'blog/edge_ai_iot_sensor.png', 'featured_image' => 'blog/blog_post_17.jpg',
'tags' => ['Flutter', 'Native', 'Mobile Mapping', 'GPS', 'Geofencing'], 'tags' => ['Flutter', 'Native', 'Mobile Mapping', 'GPS', 'Geofencing'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -972,7 +972,7 @@ spec:
[ [
'category_id' => $categoryApp->id, 'category_id' => $categoryApp->id,
'slug' => 'edge-ai-litert-anomali-tespiti', 'slug' => 'edge-ai-litert-anomali-tespiti',
'featured_image' => 'blog/edge_ai_iot_sensor.png', 'featured_image' => 'blog/blog_post_18.jpg',
'tags' => ['Edge AI', 'LiteRT', 'TensorFlow', 'Anomaly Detection', 'Mobile App'], 'tags' => ['Edge AI', 'LiteRT', 'TensorFlow', 'Anomaly Detection', 'Mobile App'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -1008,7 +1008,7 @@ spec:
'excerpt' => 'Med hjälp av Googles nya LiteRT (TensorFlow Lite) byggde vi en helt offline-kapabel mobilapp för motorvibrationsanalys som utnyttjar telefonens NPU.', 'excerpt' => 'Med hjälp av Googles nya LiteRT (TensorFlow Lite) byggde vi en helt offline-kapabel mobilapp för motorvibrationsanalys som utnyttjar telefonens NPU.',
'content' => '<h3>Offline mobil djupinlärning</h3><p>För att underlätta för servicetekniker i djupa tunnlar eller gruvor kör våra appar LiteRT-modeller lokalt på enhetens NPU utan krav på internetanslutning.</p>', 'content' => '<h3>Offline mobil djupinlärning</h3><p>För att underlätta för servicetekniker i djupa tunnlar eller gruvor kör våra appar LiteRT-modeller lokalt på enhetens NPU utan krav på internetanslutning.</p>',
'meta_title' => 'Offline mobil AI med LiteRT | Trunçgil', 'meta_title' => 'Offline mobil AI med LiteRT | Trunçgil',
'meta_description' => 'Hårdvaruaccelererad offline-diagnostik med LiteRT på iOS och Android.' 'meta_description' => 'Hårdvaruaccelererad offline-diagnostik med LiteRT på iOS and Android.'
], ],
'ru' => [ 'ru' => [
'title' => 'Офлайн-анализ аномалий в мобильных приложениях с Edge AI и LiteRT', 'title' => 'Офлайн-анализ аномалий в мобильных приложениях с Edge AI и LiteRT',
@@ -1021,7 +1021,7 @@ spec:
[ [
'category_id' => $categoryApp->id, 'category_id' => $categoryApp->id,
'slug' => 'progressive-web-apps-çevrimdisi-saha-servis', 'slug' => 'progressive-web-apps-çevrimdisi-saha-servis',
'featured_image' => 'blog/edge_ai_iot_sensor.png', 'featured_image' => 'blog/blog_post_19.jpg',
'tags' => ['PWA', 'Service Workers', 'Offline First', 'IndexedDB', 'Cache'], 'tags' => ['PWA', 'Service Workers', 'Offline First', 'IndexedDB', 'Cache'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [
@@ -1070,7 +1070,7 @@ spec:
[ [
'category_id' => $categoryApp->id, 'category_id' => $categoryApp->id,
'slug' => 'biyometrik-kimlik-dogrulama-guvenli-depolama', 'slug' => 'biyometrik-kimlik-dogrulama-guvenli-depolama',
'featured_image' => 'blog/edge_ai_iot_sensor.png', 'featured_image' => 'blog/blog_post_20.jpg',
'tags' => ['Biometrics', 'Keychain', 'Secure Storage', 'FaceID', 'Android Keystore'], 'tags' => ['Biometrics', 'Keychain', 'Secure Storage', 'FaceID', 'Android Keystore'],
'is_featured' => false, 'is_featured' => false,
'tr' => [ 'tr' => [