<?php

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

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        User::firstOrCreate([
            'email' => '361525737@qq.com',
        ],[
            'first_name' => 'Jilin',
            'last_name' => 'Jia',
            'role' => 1,
            'password' => Hash::make('123456'),
            'api_token' => Str::random(60),
        ]);
    }
}
