mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
1fbdc795ff
- Update Standard Segment Constant Logic Class - List Standard Segment Constant Logic Class - List Standard Segment Logic Class
43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Str;
|
|
|
|
class AdminUserTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('users')->insert([
|
|
[
|
|
'id' => 1,
|
|
'name' => 'The One',
|
|
'email' => 'admin@exchange.com',
|
|
'password' => bcrypt('pass123'),
|
|
'type' => 1,
|
|
'status' => 1,
|
|
'remember_token' => (string) Str::uuid(),
|
|
'active_at' => date('Y-m-d H:i:s'),
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s'),
|
|
],
|
|
[
|
|
'id' => 2,
|
|
'name' => 'The Admin',
|
|
'email' => 'admin2@exchange.com',
|
|
'password' => bcrypt('pass123'),
|
|
'type' => 1,
|
|
'status' => 1,
|
|
'remember_token' => (string) Str::uuid(),
|
|
'active_at' => date('Y-m-d H:i:s'),
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s'),
|
|
]
|
|
]);
|
|
}
|
|
}
|