GameGab/database/seeds/UsersTableSeeder.php

29 lines
626 B
PHP

<?php
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('users')->insert([
'name' => 'GameGabTeam',
'email' => Str::random(10).'@gmail.com',
'password' => bcrypt('secret'),
]);
for($i=0; $i<10; $i++) {
DB::table('users')->insert([
'name' => Str::random(10),
'email' => Str::random(10).'@gmail.com',
'password' => bcrypt('secret'),
]);
}
}
}