43 lines
1.5 KiB
PHP
43 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Setting;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class SettingSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$settings = [
|
|
// Identitas Klinik
|
|
['key' => 'site_name', 'value' => 'Klinik Rawat Inap Sahabat Keluarga'],
|
|
['key' => 'site_description', 'value' => 'Sistem Informasi Klinik Terintegrasi dan Pelayanan Pasien.'],
|
|
['key' => 'meta_keywords', 'value' => 'klinik, rekam medis, dokter, pendaftaran pasien online'],
|
|
|
|
// Branding
|
|
['key' => 'accent_color', 'value' => 'blue'],
|
|
['key' => 'base_color', 'value' => 'gray'],
|
|
|
|
// Kontak & Lokasi (Penting untuk Klinik)
|
|
['key' => 'clinic_address', 'value' => 'Jl. Raya Kedondong, Sanggrahan, Kedondong, Kec. Bagor, Kabupaten Nganjuk, Jawa Timur 64461'],
|
|
['key' => 'clinic_phone', 'value' => '0822-3039-8955'],
|
|
['key' => 'clinic_email', 'value' => ''],
|
|
['key' => 'clinic_latitude', 'value' => '-7.5861452'],
|
|
['key' => 'clinic_longitude', 'value' => '111.8812542'],
|
|
|
|
// Operasional
|
|
['key' => 'maintenance_mode', 'value' => 'false'],
|
|
['key' => 'registration_open', 'value' => 'true'],
|
|
];
|
|
|
|
foreach ($settings as $setting) {
|
|
Setting::updateOrCreate(['key' => $setting['key']], ['value' => $setting['value']]);
|
|
}
|
|
}
|
|
}
|