<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use \App\Models\User;
use \App\Models\Message;
use \App\Models\Blog;
use \App\Models\Comment;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {

        User::factory(1)->create();
        User::insert([
            [
                'name' => 'kevin',
                'email' => 'a@a.aa',
                'email_verified_at' => now(),
                'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
                'remember_token' => 'uAyNEKCgra',
                'created_at' => now(),
                'updated_at' => now(),
                'ability' => 'manager'
            ],
            [
                'name' => 'test',
                'email' => 'b@b.bb',
                'email_verified_at' => now(),
                'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
                'remember_token' => 'L3mp4ZChgX',
                'created_at' => now(),
                'updated_at' => now(),
                'ability' => 'visitor'
            ]
        ]);
        Message::factory(50)->create();
        Blog::factory(10)->create();
        Comment::factory(100)->create();
    }
}
