mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
current domain
This commit is contained in:
parent
c3bda8543a
commit
111ec91cfb
1 changed files with 2 additions and 0 deletions
|
|
@ -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.
|
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}
|
## 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`.
|
For local development, you may use `*.localhost` domains (like `foo.localhost`) for tenants. On many operating systems, these work the same way as `localhost`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue