1<?php
2
3use Illuminate\Database\Seeder;
4use Illuminate\Support\Facades\DB;
5use Illuminate\Support\Facades\Hash;
6use Illuminate\Support\Str;
7
8class DatabaseSeeder extends Seeder
9{
10 /**
11 * Run the database seeds.
12 *
13 * @return void
14 */
15 public function run()
16 {
17 DB::table('users')->insert([
18 'name' => Str::random(10),
19 'email' => Str::random(10).'@gmail.com',
20 'password' => Hash::make('password'),
21 ]);
22 }
23}