Files
sibedas/database/seeders/GlobalSettingSeeder.php

46 lines
1.4 KiB
PHP

<?php
namespace Database\Seeders;
use App\Models\GlobalSetting;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class GlobalSettingSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$globalSettings = [
[
"key" => "SIMBG_HOST",
"value" => "https://simbg.pu.go.id",
"type" => "string",
"description" => "Host SIMBG",
"created_at" => Carbon::now()->format("Y-m-d H:i:s"),
"updated_at" => Carbon::now()->format("Y-m-d H:i:s"),
],
[
"key" => "SIMBG_PASSWORD",
"value" => "Simbg123",
"type" => "string",
"description" => "Password SIMBG",
"created_at" => Carbon::now()->format("Y-m-d H:i:s"),
"updated_at" => Carbon::now()->format("Y-m-d H:i:s"),
],
[
"key" => "SIMBG_EMAIL",
"value" => "dputr@bandungkab.go.id",
"type" => "string",
"description" => "Email SIMBG",
"created_at" => Carbon::now()->format("Y-m-d H:i:s"),
"updated_at" => Carbon::now()->format("Y-m-d H:i:s"),
],
];
GlobalSetting::insert($globalSettings);
}
}