fix(tenancy): force seeders in production and set default branding
This commit is contained in:
@@ -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)
|
||||
],
|
||||
]);
|
||||
|
||||
// 綁定網域(如果沒有輸入,使用預設網域)
|
||||
|
||||
@@ -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
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user