<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class SkillSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $skills = [
            'cooking', 'driving', 'childcare', 'cleaning', 'elderly care', 'gardening'
        ];

        foreach ($skills as $skill) {
            \Illuminate\Support\Facades\DB::table('skills')->insertOrIgnore([
                'name' => $skill,
                'created_at' => now(),
                'updated_at' => now(),
            ]);
        }
    }
}
