From 111ec91cfbc4d7b924f15ea66579224a3e78013a Mon Sep 17 00:00:00 2001 From: Samuel Stancl Date: Sun, 26 Jul 2020 22:33:36 +0200 Subject: [PATCH] current domain --- source/docs/v3/domains.blade.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/docs/v3/domains.blade.md b/source/docs/v3/domains.blade.md index 38ebf6c..2361ec7 100644 --- a/source/docs/v3/domains.blade.md +++ b/source/docs/v3/domains.blade.md @@ -18,6 +18,8 @@ $tenant->domains()->create([ If you use the subdomain identification middleware, the example above will work for `acme.{any of your central domains}`. If you use the domain identification middleware, use the full hostname like `acme.com`. If you use the combined domain/subdomain identification middleware, `acme` will work as a subdomain and `acme.com` will work as a domain. +To retrieve the current domain model (when using domain identification), you may access the `$currentDomain` public static property on `DomainTenantResolver`. + ## Local development {#local-development} For local development, you may use `*.localhost` domains (like `foo.localhost`) for tenants. On many operating systems, these work the same way as `localhost`.