Files
bogazici-api/database/seeders/HeroSlideSeeder.php
2026-03-27 10:41:54 +03:00

47 lines
1.6 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 Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class HeroSlideSeeder extends Seeder
{
public function run(): void
{
DB::table('hero_slides')->truncate();
$slides = [
[
'label' => 'Güvenlik Eğitimleri',
'title' => 'Profesyonel Eğitimle Güvenli Seferler İçin',
'description' => 'IMO standartlarında yangın, cankurtarma ve tehlikeli madde eğitimleriyle kariyerinizi güvene alın.',
'image' => null,
'order_index' => 1,
'is_active' => true,
],
[
'label' => 'Yat Kaptanlığı',
'title' => 'Denizde Kendi Rotanızı Çizin',
'description' => '149 GT ve 499 GT yat kaptanlığı eğitimleriyle Türkiye\'nin en gözde kıyılarında profesyonel kaptan olarak görev yapın.',
'image' => null,
'order_index' => 2,
'is_active' => true,
],
[
'label' => 'Belge Yenileme',
'title' => 'Belgelerinizi Zamanında Yenileyin',
'description' => 'STCW yenileme, GOC/ROC tazeleme ve yat kaptanlığı tazeleme eğitimleriyle yeterliliklerinizi güncel tutun.',
'image' => null,
'order_index' => 3,
'is_active' => true,
],
];
DB::table('hero_slides')->insert(array_map(fn ($s) => array_merge($s, [
'created_at' => now(),
'updated_at' => now(),
]), $slides));
}
}