From 7a38437a04cdcd4056ba77769f8f7fc3f8f3963f Mon Sep 17 00:00:00 2001 From: Odunayo Ogungbure Date: Thu, 18 Jun 2020 16:23:03 +0100 Subject: [PATCH 1/2] Fix Typo (#54) * Fix Typo The statement "Records that contain dots in the domain column will be treated as domains (hostnames) and records that don't contain any dots will be treated as subdomains" should be the other way round * Move (hostnames) after domains --- source/docs/v3/tenant-identification.blade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/v3/tenant-identification.blade.md b/source/docs/v3/tenant-identification.blade.md index 68dca6a..6b508d7 100644 --- a/source/docs/v3/tenant-identification.blade.md +++ b/source/docs/v3/tenant-identification.blade.md @@ -40,7 +40,7 @@ The middleware for this method is `Stancl\Tenancy\Middleware\InitializeTenancyBy If you'd like to use subdomains and domains at the same time, use the `Stancl\Tenancy\Middleware\InitializeTenancyByDomainOrSubdomain` middleware. -Records that contain **dots** in the `domain` column will be treated as domains (hostnames) and records that don't contain any dots will be treated as subdomains. +Records that contain **dots** in the `domain` column will be treated as subdomains and records that don't contain any dots will be treated as domains (hostnames). ## Path identification From ecfbaf6a1294a6a4d640ef6df86c9aac612fca48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 19 Jun 2020 12:09:12 +0200 Subject: [PATCH 2/2] Str import --- source/docs/v3/upgrading.blade.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/docs/v3/upgrading.blade.md b/source/docs/v3/upgrading.blade.md index 7402b94..b9fbd67 100644 --- a/source/docs/v3/upgrading.blade.md +++ b/source/docs/v3/upgrading.blade.md @@ -20,6 +20,8 @@ That said, automatic tenancy will still work the same way. ```php use Stancl\Tenancy\Tenant; + use Illuminate\Support\Str; + tenancy() ->all() ->each(function (Tenant $tenant) {