43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
class UserSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('users')->insert([
|
|
[
|
|
'id' => 'PKTCN-TP-1',
|
|
'name' => 'Administrator',
|
|
'email' => 'admin@domain.com',
|
|
'password' => Hash::make('password'),
|
|
'tel' => '0376111000',
|
|
'birthday' => '1975-04-30',
|
|
'department_id' => 'PKTCN',
|
|
'title_id' => 'TP',
|
|
'email_verified_at' => now(),
|
|
],
|
|
[
|
|
'id' => 'PKTCN-TP-100',
|
|
'name' => 'User',
|
|
'email' => 'user@domain.com',
|
|
'password' => Hash::make('password'),
|
|
'tel' => '7988111000',
|
|
'birthday' => '1975-04-30',
|
|
'department_id' => 'PKTCN',
|
|
'title_id' => 'TP',
|
|
'email_verified_at' => now(),
|
|
],
|
|
]);
|
|
|
|
factory(App\Entities\User::class, 300)->create();
|
|
}
|
|
}
|