<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class DiasSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $dias = [['descripcion' => 'Lunes'],
        ['descripcion' =>'Martes'],
        ['descripcion' =>'Miércoles'],
        ['descripcion' =>'Jueves'],
        ['descripcion' =>'Viernes'],
        ['descripcion' =>'Sabado'],
        ['descripcion' =>'Domingo']];
    

    foreach($dias as $dia) 
    {
        DB::table('dias')->insert([
            'descripcion' => $dia['descripcion'],
            'created_at' => now(),
            'updated_at' => now(),
        ]);
    };
    }
}
