<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\User;
use Illuminate\Support\Facades\Hash;

class AdminSeeder extends Seeder
{
    public function run(): void
    {
        $admin = tap(User::create([
            'name' => 'Super Admin',
            'email' => 'admin@digishop.com',
            'password' => Hash::make('password'),
            'email_verified_at' => now(),
        ]))->assignRole('admin');
        
        $user = tap(User::create([
            'name' => 'Test User',
            'email' => 'user@digishop.com',
            'password' => Hash::make('password'),
            'email_verified_at' => now(),
        ]))->assignRole('user');
    }
}
