mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 04:23:59 +00:00
34 lines
857 B
PHP
34 lines
857 B
PHP
<?php
|
|
|
|
use App\Classes\ValueObjects\Constants\Roles;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
class UsersTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
|
|
DB::table('users')->insert([
|
|
[
|
|
'name' => 'Omair Saleh',
|
|
'email' => 'omair@izyim.com',
|
|
'password' => Hash::make('123456abcabc'),
|
|
'email_verified_at' => \Carbon\Carbon::now(),
|
|
'role_id' => Roles::SUPER_ADMIN,
|
|
'created_at' => \Carbon\Carbon::now(),
|
|
'updated_at' => \Carbon\Carbon::now()
|
|
]
|
|
]);
|
|
|
|
if (app()->environment('local'))
|
|
factory(App\Models\User::class, 30)->create();
|
|
}
|
|
}
|