<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\User;
use Carbon\Carbon;
use Illuminate\Support\Facades\Hash;
class AdminSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $data                    = new User();
        $data->name              = "admin";
        $data->user_id           = "AD1234";
        $data->email             = "ansalnaans2002@gmail.com";
        $data->phone_number      = "9443595313";
        $data->address           = "nagercoil";
        $data->is_active         = "1";
        $data->role              = "admin";
        $data->otp               = "";
        $data->otp_expires_at    = "";
        $data->otp_verified      = "";
        $data->is_verified       = "0";
        $data->password          = Hash::make('123456789');
       
        $data->save();
    }
}
