mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Note on domains for dev
This commit is contained in:
parent
880de3faf2
commit
37f5c906fc
1 changed files with 7 additions and 1 deletions
|
|
@ -16,4 +16,10 @@ $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.
|
||||
|
||||
## 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`.
|
||||
|
||||
If you're using Valet, you may want to use e.g. `saas.test` for the central domain and `foo.saas.test`, `bar.saas.test` etc for tenant domains.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue