From b2124349906c99761c5695701c9a90e0877f6b54 Mon Sep 17 00:00:00 2001 From: Nick Parker Date: Sun, 15 Mar 2020 16:32:11 -0400 Subject: [PATCH] Provide exempt_domains examples (#44) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Provide exempt_domains example When I was setting this up, I noticed that using the https protocol would cause the package to throw an exception. After a bit of tinkering, I realized that the domain needs to be completely stripped (no protocol) in order for the central app to recognize it. This PR just adds a simple example to the docs for this. * Update central-app.blade.md * Update central-app.blade.md * Update docs/source/v2/central-app.blade.md Co-Authored-By: Samuel Štancl * Update docs/source/v2/configuration.blade.md * ` instead of ``` * ` instead of ``` Co-authored-by: Samuel Štancl --- docs/source/v2/central-app.blade.md | 2 ++ docs/source/v2/configuration.blade.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/v2/central-app.blade.md b/docs/source/v2/central-app.blade.md index 6555505..9aeee9f 100644 --- a/docs/source/v2/central-app.blade.md +++ b/docs/source/v2/central-app.blade.md @@ -17,6 +17,8 @@ Routes in the `routes/web.php` file are the central routes. When they are visite However, since you don't want routes related to the app on your main domain and sign up forms on tenant domains, you must also define what domains host the central stuff in the `tenancy.exempt_domains` config. +The exempt domains should not include the protocol. For example, you should include `example.com` rather than `https://example.com`. + ## Using central things inside the tenant app {#using-central-things-inside-the-tenant-app} To use central things (databases/caches/Redis connections/filesystems/...) on special places of your tenant app, you may do the following. diff --git a/docs/source/v2/configuration.blade.md b/docs/source/v2/configuration.blade.md index 2b48df3..e836f8a 100644 --- a/docs/source/v2/configuration.blade.md +++ b/docs/source/v2/configuration.blade.md @@ -38,7 +38,7 @@ Controller namespace used for routes in `routes/tenant.php`. The default value i ### `exempt_domains` {#exempt-domains} -If a hostname from this array is visited, the `tenant.php` routes won't be registered, letting you use the same routes as in that file. +If a hostname from this array is visited, the `tenant.php` routes won't be registered, letting you use the same routes as in that file. This should be the domain without the protocol (i.e., `example.com` rather than `https://example.com`). ### `database` {#database}