32 lines
2.9 KiB
PHP
32 lines
2.9 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class UsersSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('users')->insert([
|
|
['department_id' =>'0', 'first_name' => 'ceo', 'last_name' => 'ceo', 'email' => 'ceo@online.tm', 'username' => 'ceo', 'password' => Hash::make('123456')],
|
|
['department_id' =>'0', 'first_name' => 'dyceo', 'last_name' => 'dyceo', 'email' => 'dyceo@online.tm', 'username' => 'dyceo', 'password' => Hash::make('123456')],
|
|
['department_id' =>'2', 'first_name' => 'registryHead', 'last_name' => 'registry', 'email' => 'reg@online.tm', 'username' => 'registry', 'password' => Hash::make('123456')],
|
|
// ['department_id' =>'2', 'first_name' => 'registry2', 'last_name' => 'registry2', 'email' => 'registry2@online.tm', 'username' => 'registry2', 'password' => Hash::make('123456')],
|
|
// ['department_id' =>'1', 'first_name' => 'Assistant', 'last_name' => 'Assistant', 'email' => 'assistant@online.tm', 'username' => 'assistant', 'password' => Hash::make('123456')],
|
|
// ['department_id' =>'4', 'first_name' => 'Department2 - Director', 'last_name' => 'Department2 - Director', 'email' => 'dep2director@online.tm', 'username' => 'dep2director', 'password' => Hash::make('123456')],
|
|
// ['department_id' =>'4', 'first_name' => 'dep2dydirector', 'last_name' => 'dep2dydirector', 'email' => 'dep2dydirector@online.tm', 'username' => 'dep2dydirector', 'password' => Hash::make('123456')],
|
|
// ['department_id' =>'3', 'first_name' => 'dep1director', 'last_name' => 'dep1director', 'email' => 'dep1director@online.tm', 'username' => 'dep1director', 'password' => Hash::make('123456')],
|
|
// ['department_id' =>'3', 'first_name' => 'dep1dydirector', 'last_name' => 'dep1dydirector', 'email' => 'dep1dydirector@online.tm', 'username' => 'dep1dydirector', 'password' => Hash::make('123456')],
|
|
// ['department_id' =>'3', 'first_name' => 'Department1 Emp', 'last_name' => 'Department1 Emp', 'email' => 'dep1emp@online.tm', 'username' => 'dep1emp', 'password' => Hash::make('123456')],
|
|
// ['department_id' =>'5', 'first_name' => 'sub1head', 'last_name' => 'sub1head', 'email' => 'sub1head@online.tm', 'username' => 'sub1head', 'password' => Hash::make('123456')],
|
|
// ['department_id' =>'5', 'first_name' => 'sub1dyhead', 'last_name' => 'sub1dyhead', 'email' => 'sub1dyhead@online.tm', 'username' => 'sub1dyhead', 'password' => Hash::make('123456')],
|
|
// ['department_id' =>'5', 'first_name' => 'sub1emp1', 'last_name' => 'sub1emp1', 'email' => 'sub1emp1@online.tm', 'username' => 'sub1emp1', 'password' => Hash::make('123456')],
|
|
// ['department_id' =>'5', 'first_name' => 'sub1emp2', 'last_name' => 'sub1emp2', 'email' => 'sub1emp2@online.tm', 'username' => 'sub1emp2', 'password' => Hash::make('123456')],
|
|
]);
|
|
}
|
|
}
|