<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Faker\Generator as Faker;
use App\Models\User;

class UsersSeeder extends Seeder {

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run(Faker $faker) {
        User::create([
            'name' => 'EchedeyLR',
            'email' => 'elr@disroot.org',
            'email_verified_at' => null,
            'password' => bcrypt('12345678')
        ])->assignRole('Administrator');
        
        User::create([
            'name' => 'Mela',
            'email' => 'mela@mela.mela',
            'email_verified_at' => null,
            'password' => bcrypt('12345678')
        ])->assignRole('Basic');

        for ($i = 0; $i < 5; $i++) {
            User::create([
                'name' => $faker->unique()->name(),
                'email' => $faker->unique()->email(),
                'email_verified_at' => null,
                'password' => bcrypt('12345678')
            ])->assignRole('Basic');
        }
    }

}
