mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 04:13:58 +00:00
45 lines
1.2 KiB
PHP
45 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Str;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class AdminsTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('admins')->insert([
|
|
[
|
|
'id' => 1,
|
|
'name' => 'Glovetloxad',
|
|
'email' => 'glovet@unity.com',
|
|
'password' => bcrypt('pass123'),
|
|
'img' => null,
|
|
'status' => 1,
|
|
'created_by' => null,
|
|
'updated_by' => null,
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
],
|
|
[
|
|
'id' => 2,
|
|
'name' => 'The One',
|
|
'email' => 'admin@unity.com',
|
|
'password' => bcrypt('pass123'),
|
|
'img' => null,
|
|
'status' => 1,
|
|
'created_by' => null,
|
|
'updated_by' => null,
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
]
|
|
]);
|
|
}
|
|
} |