From 36d963ca067ac72d64392598393d9befbf539657 Mon Sep 17 00:00:00 2001 From: Arya Dwi Putra Date: Tue, 2 Dec 2025 18:33:28 +0700 Subject: [PATCH] Seed default settings during setup migrate --- app/Http/Controllers/SetupWizardController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/SetupWizardController.php b/app/Http/Controllers/SetupWizardController.php index 1fd8f5e..66cdf90 100644 --- a/app/Http/Controllers/SetupWizardController.php +++ b/app/Http/Controllers/SetupWizardController.php @@ -142,8 +142,9 @@ class SetupWizardController extends Controller if ($withSample) { Artisan::call('db:seed', ['--force' => true]); } else { - // Seed minimal RBAC agar wizard dapat berjalan + // Seed minimal: RBAC + default settings agar wizard punya baseline konfigurasi Artisan::call('db:seed', ['--force' => true, '--class' => 'Database\\Seeders\\RbacSeeder']); + Artisan::call('db:seed', ['--force' => true, '--class' => 'Database\\Seeders\\SettingSeeder']); } return redirect()->route('setup.index', ['step' => 1])->with('success', 'Migrasi berhasil' . ($withSample ? ' dengan sample data.' : '.')); } catch (\Throwable $e) {