e29a5891c8
Reviewed-on: #5 Co-authored-by: ISMAIL MASSERAN <ismail@koppkb.com> Co-committed-by: ISMAIL MASSERAN <ismail@koppkb.com>
39 lines
813 B
PHP
39 lines
813 B
PHP
<?php
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Support\Facades\Hash;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class SeedSystemUser extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
DB::table('users')->insert([
|
|
'name' => 'System',
|
|
'username' => 'system',
|
|
'email' => 'info@adminlelong.arrahn',
|
|
'password' => Hash::make('password'),
|
|
'nokp' => '9090909090009',
|
|
'status' => 'active',
|
|
't_daftar' => Carbon::now(),
|
|
'user_type' => 1,
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('users');
|
|
}
|
|
}
|