diff --git a/app/Http/Requests/Admin/System/Setting/SystemRequest.php b/app/Http/Requests/Admin/System/Setting/SystemRequest.php
index 49b2169..23dc6be 100644
--- a/app/Http/Requests/Admin/System/Setting/SystemRequest.php
+++ b/app/Http/Requests/Admin/System/Setting/SystemRequest.php
@@ -16,11 +16,12 @@ public function rules(): array
{
return [
'app_name' => ['required', 'string', 'max:100'],
- 'about_app' => ['nullable', 'string'],
- 'email' => ['nullable', 'email', 'max:100'],
- 'phone' => ['nullable', 'string', 'max:20'],
- 'logo' => ['nullable', 'image', 'max:2048'],
- 'login_cover' => ['nullable', 'image', 'max:5120'],
+ 'about_app' => ['required', 'string'],
+ 'email' => ['required', 'email', 'max:100'],
+ 'phone' => ['required', 'string', 'max:20'],
+ 'address' => ['required', 'string'],
+ 'logo' => ['required', 'image', 'max:2048'],
+ 'login_cover' => ['required', 'image', 'max:5120'],
];
}
}
diff --git a/app/Services/System/Setting/SystemService.php b/app/Services/System/Setting/SystemService.php
index 6eceb4d..6c1588e 100644
--- a/app/Services/System/Setting/SystemService.php
+++ b/app/Services/System/Setting/SystemService.php
@@ -29,6 +29,7 @@ public function systemData(): array
'about_app' => $settings->about_app,
'email' => $settings->email,
'phone' => $settings->phone,
+ 'address' => $settings->address,
'logo_url' => $logo['url'] ?? null,
'login_cover_url' => $loginCover['url'] ?? null,
];
@@ -43,6 +44,7 @@ public function updateSystem(array $validated): void
$settings->about_app = $validated['about_app'] ?? null;
$settings->email = $validated['email'] ?? null;
$settings->phone = $validated['phone'] ?? null;
+ $settings->address = $validated['address'] ?? null;
$settings->save();
if (isset($validated['logo']) && $validated['logo'] instanceof UploadedFile) {
diff --git a/app/Settings/SystemSettings.php b/app/Settings/SystemSettings.php
index 1779547..8c0f75b 100644
--- a/app/Settings/SystemSettings.php
+++ b/app/Settings/SystemSettings.php
@@ -8,11 +8,13 @@ class SystemSettings extends Settings
{
public string $app_name;
- public ?string $about_app;
+ public string $about_app;
- public ?string $email;
+ public string $email;
- public ?string $phone;
+ public string $phone;
+
+ public string $address;
public static function group(): string
{
diff --git a/database/settings/2026_06_11_085959_create_app_settings.php b/database/settings/2026_06_11_085959_create_app_settings.php
index 871e447..4f18177 100644
--- a/database/settings/2026_06_11_085959_create_app_settings.php
+++ b/database/settings/2026_06_11_085959_create_app_settings.php
@@ -9,11 +9,12 @@ public function up(): void
{
$this->migrator->inGroup('system', function (SettingsBlueprint $blueprint): void {
$blueprint->add('app_name', config('app.name', 'DST Collection'));
- $blueprint->add('about_app', null);
- $blueprint->add('email', null);
- $blueprint->add('phone', null);
- $blueprint->add('logo', null);
- $blueprint->add('login_cover', null);
+ $blueprint->add('address', 'Jl. Raya Cipeundeuy - Pabuaran No.909, Pabuaran, Kec. Pabuaran, Kabupaten Subang, Jawa Barat 41262');
+ $blueprint->add('about_app', '');
+ $blueprint->add('email', '');
+ $blueprint->add('phone', '');
+ $blueprint->add('logo', '');
+ $blueprint->add('login_cover', '');
});
$this->migrator->inGroup('social_media', function (SettingsBlueprint $blueprint): void {
diff --git a/resources/js/components/admin/setting/SystemSection.vue b/resources/js/components/admin/setting/SystemSection.vue
index ead9177..b5850e0 100644
--- a/resources/js/components/admin/setting/SystemSection.vue
+++ b/resources/js/components/admin/setting/SystemSection.vue
@@ -20,6 +20,7 @@ const form = useForm({
about_app: props.data.about_app ?? '',
email: props.data.email ?? '',
phone: props.data.phone ?? '',
+ address: props.data.address ?? '',
logo: null as File | null,
login_cover: null as File | null,
});
@@ -65,6 +66,15 @@ function submit() {
+
+
+ Alamat
+
+
+
+
+
Email
diff --git a/resources/js/types/setting.ts b/resources/js/types/setting.ts
index 5d09a2e..fcb8ce0 100644
--- a/resources/js/types/setting.ts
+++ b/resources/js/types/setting.ts
@@ -4,11 +4,12 @@ export type MarketplacePlatform = 'tiktok_shop' | 'shopee';
export type SystemSettingsData = {
app_name: string;
- about_app: string | null;
- email: string | null;
- phone: string | null;
- logo_url: string | null;
- login_cover_url: string | null;
+ about_app: string;
+ email: string;
+ phone: string;
+ address: string;
+ logo_url: string;
+ login_cover_url: string;
};
export type SocialMediaSettingsData = {