fix(tenancy): force seeders in production and set default branding
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Has been skipped
Koori-ERP-Deploy-System / deploy-production (push) Successful in 51s

This commit is contained in:
2026-01-28 13:45:28 +08:00
parent 4c959efc8b
commit d4cef2cd84
2 changed files with 6 additions and 1 deletions

View File

@@ -56,6 +56,11 @@ class TenantController extends Controller
'name' => $validated['name'],
'email' => $validated['email'] ?? null,
'is_active' => true,
'branding' => [
'logo_path' => 'defaults/logo.png', // 預設 Logo 路徑
'login_background_path' => 'defaults/login_bg.jpg', // 預設登入背景
'primary_color' => '#4F46E5', // 預設主色系 (Indigo-600)
],
]);
// 綁定網域(如果沒有輸入,使用預設網域)

View File

@@ -204,6 +204,6 @@ return [
*/
'seeder_parameters' => [
'--class' => 'TenantDatabaseSeeder', // 租戶專用 seeder
// '--force' => true, // This needs to be true to seed tenant databases in production
'--force' => true, // 強制在正式環境執行 Seeder
],
];