<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Teacher;

class TeacherTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $teachers = collect([
            [
                'name' => 'Nurmuhammet',
                'photo' => 'teachers/nurmuhammet.png',
                'bio' => 'Nurmuhammet esasy topar ýolbaşçy.',
            ],
            [
                'name' => 'Juma',
                'photo' => 'teachers/jumash.png',
                'bio' => 'Juma, Abdyrahman tagsyryň okuwçysy, topar ýolbaşçy.',
            ],
            [
                'name' => 'Resul',
                'photo' => 'teachers/resul.png',
                'bio' => 'Resul topar ýolbaşçy.',
            ],
        ]);

        $teachers->each(fn ($teacher) => Teacher::create($teacher));
    }
}
