From 4bdb986b96eba97f1c4ae0f17f9882725b9896c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 16 Apr 2024 02:17:20 +0200 Subject: [PATCH] remove old UUID generator, minor config changes --- assets/config.php | 9 +++++---- src/UUIDGenerator.php | 18 ------------------ 2 files changed, 5 insertions(+), 22 deletions(-) delete mode 100644 src/UUIDGenerator.php diff --git a/assets/config.php b/assets/config.php index 3f92dead..4b8a8f5e 100644 --- a/assets/config.php +++ b/assets/config.php @@ -44,7 +44,7 @@ return [ * * Only relevant if you're using the domain or subdomain identification middleware. */ - 'central_domains' => [ // todo@docs this was moved into the identification section + 'central_domains' => [ str(env('APP_URL'))->after('://')->before('/')->toString(), ], @@ -87,6 +87,7 @@ return [ Middleware\InitializeTenancyByDomainOrSubdomain::class, ], + // todo@lukas docblock 'path_identification_middleware' => [ Middleware\InitializeTenancyByPath::class, ], @@ -132,7 +133,7 @@ return [ // Basic Laravel features Bootstrappers\DatabaseTenancyBootstrapper::class, Bootstrappers\CacheTenancyBootstrapper::class, - // Bootstrappers\CacheTagsBootstrapper::class, // Alternative to PrefixCacheTenancyBootstrapper + // Bootstrappers\CacheTagsBootstrapper::class, // Alternative to CacheTenancyBootstrapper Bootstrappers\FilesystemTenancyBootstrapper::class, Bootstrappers\QueueTenancyBootstrapper::class, // Bootstrappers\RedisTenancyBootstrapper::class, // Note: phpredis is needed @@ -343,8 +344,8 @@ return [ 'features' => [ // Stancl\Tenancy\Features\UserImpersonation::class, // Stancl\Tenancy\Features\TelescopeTags::class, - // Stancl\Tenancy\Features\TenantConfig::class, // https://tenancyforlaravel.com/docs/v3/features/tenant-config - // Stancl\Tenancy\Features\CrossDomainRedirect::class, // https://tenancyforlaravel.com/docs/v3/features/cross-domain-redirect + // Stancl\Tenancy\Features\TenantConfig::class, + // Stancl\Tenancy\Features\CrossDomainRedirect::class, // Stancl\Tenancy\Features\ViteBundler::class, ], diff --git a/src/UUIDGenerator.php b/src/UUIDGenerator.php deleted file mode 100644 index 04e0d92c..00000000 --- a/src/UUIDGenerator.php +++ /dev/null @@ -1,18 +0,0 @@ -