<?php

namespace Database\Seeders;

use App\Models\User;
use App\Models\Course;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class DatabaseSeeder extends Seeder
{
    public function run(): void
    {
        User::create([
            'login' => 'Adminn',
            'email' => 'adminn@example.com',
            'full_name' => 'Администратор',
            'phone' => '8(999)111-11-11',
            'password' => Hash::make('KorokNET'),
        ]);

        User::create([
            'login' => 'test',
            'email' => 'test@example.com',
            'full_name' => 'тестовый пользователь',
            'phone' => '8(999)111-11-11',
            'password' => Hash::make('password'),
        ]);

        Course::create([
            "name" => 'Алгоритмизация',
            "description" => 'Алгоритмизация',
            "price" =>  15000,
        ]);
        Course::create([
            "name" => 'Базы данных',
                "description" => 'Базы данных',
                "price" =>  15000,
        ]);
        Course::create([
            "name" => 'дизайн',
                "description" => 'дизайн',
                "price" =>  15000,
        ]);
    }
}
