1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 03:54:03 +00:00

config: ignore port in default central_domains value

Recent Laravel installations often have http://localhost:8000 as
APP_URL, so we make sure to strip any port suffix from the default
central domain derived from APP_URL.
This commit is contained in:
Samuel Štancl 2025-11-11 02:06:03 +01:00
parent 38aab013a4
commit 0cd0bc44b1
No known key found for this signature in database
GPG key ID: BA146259A1E16C57

View file

@ -64,7 +64,7 @@ return [
* Only relevant if you're using the domain or subdomain identification middleware.
*/
'central_domains' => [
str(env('APP_URL'))->after('://')->before('/')->toString(),
str(env('APP_URL'))->after('://')->before('/')->before(':')->toString(),
],
/**