Files
citrus/database/seeders/BlogTopicSeeder.php

39 lines
1.1 KiB
PHP
Raw Permalink 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 Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class BlogTopicSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$topics = [
'Yapay Zeka ve İş Dünyası',
'Mobil Uygulama Geliştirme Trendleri',
'E-Ticaretin Geleceği',
'Siber Güvenlik Önlemleri',
'Blockchain Teknolojisi',
'Bulut Bilişim Avantajları',
'Nesnelerin İnterneti (IoT) Uygulamaları',
'Veri Analitiği ve Büyük Veri',
'Dijital Dönüşüm Stratejileri',
'Web Yazılım Teknolojileri'
];
foreach ($topics as $topic) {
DB::table('blog_topics')->insert([
'name' => $topic,
'context' => 'Trunçgil Teknoloji çözümlerine ve uzmanlığına vurgu yapın.',
'status' => 'active',
'created_at' => now(),
'updated_at' => now(),
]);
}
}
}