update code
This commit is contained in:
31
database/seeds/UserSeeder.php
Normal file
31
database/seeds/UserSeeder.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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(),
|
||||
],
|
||||
]);
|
||||
|
||||
factory(App\Entities\User::class, 300)->create();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user