diff --git a/database/seeders/BlogSeeder.php b/database/seeders/BlogSeeder.php index 8f3b833..b2cea58 100644 --- a/database/seeders/BlogSeeder.php +++ b/database/seeders/BlogSeeder.php @@ -78,8 +78,8 @@ class BlogSeeder extends Seeder ] ); - // Önceki blog yazılarını ve ilgili çevirilerini temizle - $existingBlogs = Blog::whereIn('slug', [ + // Önceki blog yazılarını ve ilgili çevirilerini temizle (soft-deleted dahil) ve force-delete yap + $existingBlogs = Blog::withTrashed()->whereIn('slug', [ 'bulut-bilisim-kubernetes-kurumsal-mimari', 'mikroservislerde-api-gateway-guvenlik', 'dagitik-sistemlerde-veri-tutarliligi', @@ -107,7 +107,7 @@ class BlogSeeder extends Seeder foreach ($existingBlogs as $exPost) { $exPost->translations()->delete(); - $exPost->delete(); + $exPost->forceDelete(); } // 3. Blog Yazıları & Çevirileri Tanımları @@ -116,7 +116,7 @@ class BlogSeeder extends Seeder [ 'category_id' => $categoryTech->id, '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'], 'is_featured' => true, 'tr' => [ @@ -182,9 +182,9 @@ spec: [ 'category_id' => $categoryTech->id, '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'], - 'is_featured' => false, + 'is_featured' => true, 'tr' => [ '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.', @@ -231,7 +231,7 @@ spec: [ 'category_id' => $categoryTech->id, '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'], 'is_featured' => false, 'tr' => [ @@ -280,7 +280,7 @@ spec: [ 'category_id' => $categoryTech->id, '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'], 'is_featured' => false, 'tr' => [ @@ -329,7 +329,7 @@ spec: [ 'category_id' => $categoryTech->id, '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'], 'is_featured' => false, 'tr' => [ @@ -380,7 +380,7 @@ spec: [ 'category_id' => $categoryAi->id, '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'], 'is_featured' => true, 'tr' => [ @@ -429,7 +429,7 @@ spec: [ 'category_id' => $categoryAi->id, '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'], 'is_featured' => false, 'tr' => [ @@ -478,7 +478,7 @@ spec: [ 'category_id' => $categoryAi->id, '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'], 'is_featured' => false, 'tr' => [ @@ -527,7 +527,7 @@ spec: [ 'category_id' => $categoryAi->id, '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'], 'is_featured' => false, 'tr' => [ @@ -576,7 +576,7 @@ spec: [ 'category_id' => $categoryAi->id, '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'], 'is_featured' => false, 'tr' => [ @@ -627,7 +627,7 @@ spec: [ 'category_id' => $categoryMusic->id, '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'], 'is_featured' => true, 'tr' => [ @@ -676,7 +676,7 @@ spec: [ 'category_id' => $categoryMusic->id, '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'], 'is_featured' => false, 'tr' => [ @@ -725,7 +725,7 @@ spec: [ 'category_id' => $categoryMusic->id, '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'], 'is_featured' => false, 'tr' => [ @@ -774,7 +774,7 @@ spec: [ 'category_id' => $categoryMusic->id, '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'], 'is_featured' => false, 'tr' => [ @@ -823,7 +823,7 @@ spec: [ 'category_id' => $categoryMusic->id, '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'], 'is_featured' => false, 'tr' => [ @@ -874,7 +874,7 @@ spec: [ 'category_id' => $categoryApp->id, '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++'], 'is_featured' => true, 'tr' => [ @@ -896,7 +896,7 @@ spec: 'excerpt' => 'Internetunabhängige Anomalieerkennung direkt auf IoT-Chips und Smartphones mittels Metas neuem ExecuTorch-Compiler.', 'content' => '
Durch die Portierung von Modellen auf ExecuTorch reduzieren wir die Latenzzeit bei In-Situ-Sensorauswertungen auf unter 5ms.
', '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' => [ 'title' => 'الذكاء الاصطناعي الطرفي (Edge AI) على الهاتف المحمول وإنترنت الأشياء: الصيانة التنبؤية على الأجهزة باستخدام ExecuTorch', @@ -923,7 +923,7 @@ spec: [ 'category_id' => $categoryApp->id, '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'], 'is_featured' => false, 'tr' => [ @@ -972,7 +972,7 @@ spec: [ 'category_id' => $categoryApp->id, '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'], 'is_featured' => false, '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.', 'content' => '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.
', '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' => [ 'title' => 'Офлайн-анализ аномалий в мобильных приложениях с Edge AI и LiteRT', @@ -1021,7 +1021,7 @@ spec: [ 'category_id' => $categoryApp->id, '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'], 'is_featured' => false, 'tr' => [ @@ -1070,7 +1070,7 @@ spec: [ 'category_id' => $categoryApp->id, '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'], 'is_featured' => false, 'tr' => [