migrate template

This commit is contained in:
Mekan1206
2026-06-06 12:56:15 +05:00
parent e57fdfc2ad
commit 24b8539e98
135 changed files with 7586 additions and 237 deletions

View File

@@ -0,0 +1,46 @@
<?php
namespace Database\Seeders;
use App\Models\HeroSlide;
use Illuminate\Database\Seeder;
class HeroSlideSeeder extends Seeder
{
public function run(): void
{
$slides = [
[
'headline' => "Usta\ntarapyndan\ntaýýarlanan bölekler.",
'subheadline' => 'Miras et, el bilen saýlanan we bilimiň stoly üçin usta taýýarlygy.',
'cta_label' => 'Häzir satyn al',
'cta_url' => '#explore',
'image' => null,
'sort_order' => 1,
'is_active' => true,
],
[
'headline' => "Kämilleşdirilmek\nüçin\ngowaldyrylan.",
'subheadline' => 'Wagtyň synagdan geçen gowaldyryş usullary — ýokary ýumşaklyk we tagam çuňlugy.',
'cta_label' => 'Gowaldyrylan etleri gözden geçiriň',
'cta_url' => '#explore',
'image' => null,
'sort_order' => 2,
'is_active' => true,
],
[
'headline' => "Usta\nkolbasalary.",
'subheadline' => 'Her gün el bilen baglanýar — adaty reseptler, premium bölekler we aýratyn tagam garyndylary.',
'cta_label' => 'Saýlawy görmek',
'cta_url' => '#explore',
'image' => null,
'sort_order' => 3,
'is_active' => true,
],
];
foreach ($slides as $slide) {
HeroSlide::create($slide);
}
}
}