<?php

use App\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $user1 = User::create([
            'name' => 'Site de Rifas',
            'email' => 'admin@gmail.com',
            'telephone' => '11916059141',
            'status' => '1',
            'password' => bcrypt('Mudar@123'),
        ]);

        DB::table('consulting_environments')->insert([
            [
                'name' => 'Rifa Online',
                'facebook' => 'teste',
                'instagram' => 'teste',
                'key_pix' => 'APP_USR-714805991255627-031313-e3304c01447a1856757e210ee609e4de-648234318',
                'key_pix_public' => 'APP_USR-a0e4e926-658a-408e-b281-be4a27f51b0e',
                'user_id' => $user1->id
            ]
        ]);
    }
}
