From 1ff82fb2a09dd0ee545fd13679aa739ea589dfed Mon Sep 17 00:00:00 2001 From: bepsvpt <8221099+bepsvpt@users.noreply.github.com> Date: Tue, 18 Aug 2020 22:02:26 +0800 Subject: [PATCH 1/5] reverse middlewares order before prepend (#479) --- assets/TenancyServiceProvider.stub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/TenancyServiceProvider.stub.php b/assets/TenancyServiceProvider.stub.php index 87c5c814..1dc58a3d 100644 --- a/assets/TenancyServiceProvider.stub.php +++ b/assets/TenancyServiceProvider.stub.php @@ -136,7 +136,7 @@ class TenancyServiceProvider extends ServiceProvider Middleware\InitializeTenancyByRequestData::class, ]; - foreach ($tenancyMiddleware as $middleware) { + foreach (array_reverse($tenancyMiddleware) as $middleware) { $this->app[\Illuminate\Contracts\Http\Kernel::class]->prependToMiddlewarePriority($middleware); } } From 75ea84474173831147b0d986a7170945aff457d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 31 Aug 2020 21:34:01 +0200 Subject: [PATCH 2/5] Delete documentation-issue.md --- .github/ISSUE_TEMPLATE/documentation-issue.md | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/documentation-issue.md diff --git a/.github/ISSUE_TEMPLATE/documentation-issue.md b/.github/ISSUE_TEMPLATE/documentation-issue.md deleted file mode 100644 index 7fc7ec35..00000000 --- a/.github/ISSUE_TEMPLATE/documentation-issue.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: "\U0001F4DA Documentation Issue" -about: Suggest how the documentation could be improved. -title: '' -labels: documentation -assignees: stancl - ---- - - From 14078b67201f4655ecdc13d2e5cae01962fc60da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 31 Aug 2020 21:34:37 +0200 Subject: [PATCH 3/5] Make documentation issues a link to tenancy-docs --- .github/ISSUE_TEMPLATE/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 7ae033bf..0980787a 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -2,4 +2,7 @@ blank_issues_enabled: false contact_links: - name: Support Questions & Other url: https://github.com/stancl/tenancy/blob/3.x/SUPPORT.md - about: 'If you have a question or need help using the package' + about: 'If you have a question or need help using the package.' + - name: Documentation Issue + url: https://github.com/stancl/tenancy-docs + about: 'Suggest how the documentation could be improved.' From 14370baaa7efb4a4825d26cdc63100ad21969ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 31 Aug 2020 21:34:56 +0200 Subject: [PATCH 4/5] Link to /issues --- .github/ISSUE_TEMPLATE/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 0980787a..6870a17c 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -4,5 +4,5 @@ contact_links: url: https://github.com/stancl/tenancy/blob/3.x/SUPPORT.md about: 'If you have a question or need help using the package.' - name: Documentation Issue - url: https://github.com/stancl/tenancy-docs + url: https://github.com/stancl/tenancy-docs/issues about: 'Suggest how the documentation could be improved.' From bb5baced2ae5c50b49519884b6e3de1809beaed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Tue, 1 Sep 2020 11:38:25 +0100 Subject: [PATCH 5/5] Update config links to v3 docs (#486) --- assets/config.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/config.php b/assets/config.php index b335224d..e89c6c9d 100644 --- a/assets/config.php +++ b/assets/config.php @@ -92,7 +92,7 @@ return [ /** * Filesystem tenancy config. Used by FilesystemTenancyBootstrapper. - * https://tenancy.samuelstancl.me/docs/v2/filesystem-tenancy/. + * https://tenancyforlaravel.com/docs/v3/tenancy-bootstrappers/#filesystem-tenancy-boostrapper. */ 'filesystem' => [ /** @@ -108,7 +108,7 @@ return [ /** * Use this for local disks. * - * See https://tenancy.samuelstancl.me/docs/v2/filesystem-tenancy/ + * See https://tenancyforlaravel.com/docs/v3/tenancy-bootstrappers/#filesystem-tenancy-boostrapper */ 'root_override' => [ // Disks whose roots should be overriden after storage_path() is suffixed. @@ -165,8 +165,8 @@ return [ // Stancl\Tenancy\Features\UserImpersonation::class, // Stancl\Tenancy\Features\TelescopeTags::class, // Stancl\Tenancy\Features\UniversalRoutes::class, - // Stancl\Tenancy\Features\TenantConfig::class, // https://tenancy.samuelstancl.me/docs/v2/features/tenant-config/ - // Stancl\Tenancy\Features\CrossDomainRedirect::class, // https://tenancy.samuelstancl.me/docs/v2/features/tenant-redirect/ + // 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 ], /**