From a6ed2720d58ae69f5b8d2748591cdb7007577fd8 Mon Sep 17 00:00:00 2001 From: sky121113 Date: Thu, 15 Jan 2026 13:25:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=BE=A9=20central=5Fdomains?= =?UTF-8?q?=20=E5=BE=9E=E7=92=B0=E5=A2=83=E8=AE=8A=E6=95=B8=E8=AE=80?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/tenancy.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/tenancy.php b/config/tenancy.php index 73908cf..7baf6ef 100644 --- a/config/tenancy.php +++ b/config/tenancy.php @@ -16,10 +16,9 @@ return [ * * Only relevant if you're using the domain or subdomain identification middleware. */ - 'central_domains' => [ - '127.0.0.1', - 'localhost', - ], + 'central_domains' => array_filter( + array_map('trim', explode(',', env('CENTRAL_DOMAINS', '127.0.0.1,localhost'))) + ), /** * Tenancy bootstrappers are executed when tenancy is initialized.