<?php

namespace Database\Seeders;

use App\Models\User;
use Hash;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class DummyMemberSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $userEmails = [
            'admin@linksehat.dev',
            'manager+one@gmail.com',
            'manager+two@gmail.com'
        ];

        foreach ($userEmails as $email) {
            User::updateOrCreate([
                'email' => $email
            ], [
                'email' => $email,
                'password' => Hash::make('password')
            ]);
        }
    }
}
