Files
lelong/database/migrations/2023_01_10_112549_seed_system_user.php
ismailmasseran e29a5891c8 Bugfix/list clickup issue (#5)
Reviewed-on: #5
Co-authored-by: ISMAIL MASSERAN <ismail@koppkb.com>
Co-committed-by: ISMAIL MASSERAN <ismail@koppkb.com>
2026-10-19 13:30:36 +08:00

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');
}
}