<?php

namespace Database\Seeders;

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

use App\Models\User;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        // \App\Models\User::factory(10)->create();


        $user = User::create([
            'name' => 'Admin',
            'surname' => 'Admin',
            'email' => 'admin@ine-uac.com',
            'password' => Hash::make('admin2024'),
            'email_verified_at' => now()
        ]);

        // $user->assignRole('admin');

        $this->call([

            StudentSeeder::class,

        ]);
    }
}
