mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-26 07:44:06 +00:00
setup
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?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')
|
||||
]
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user