feat: Add site_email and site_phone fields to GeneralSettings and migration

This commit is contained in:
Yoga Pangestu 2026-01-06 09:28:37 +07:00
parent 95bb6a3b50
commit 0382570c23
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,10 @@ class GeneralSettings extends Settings
public ?string $address;
public ?string $site_email;
public ?string $site_phone;
public static function group(): string
{
return 'general';

View File

@ -13,6 +13,8 @@ public function up(): void
$this->migrator->add('general.site_icon', null);
$this->migrator->add('general.about_us', null);
$this->migrator->add('general.address', null);
$this->migrator->add('general.site_email', 'diskominfo@purwakartakab.go.id');
$this->migrator->add('general.site_phone', '(0264) 200222');
// Social Media
$this->migrator->add('social_media.facebook', null);
@ -34,6 +36,8 @@ public function down(): void
$this->migrator->delete('general.site_icon');
$this->migrator->delete('general.about_us');
$this->migrator->delete('general.address');
$this->migrator->delete('general.site_email');
$this->migrator->delete('general.site_phone');
$this->migrator->delete('social_media.facebook');
$this->migrator->delete('social_media.twitter');