mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Merge branch 'master' of github.com:stancl/tenancy-docs
This commit is contained in:
commit
c4af0901c0
2 changed files with 3 additions and 1 deletions
|
|
@ -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.
|
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
|
## Path identification
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,8 @@ That said, automatic tenancy will still work the same way.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
use Stancl\Tenancy\Tenant;
|
use Stancl\Tenancy\Tenant;
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
tenancy()
|
tenancy()
|
||||||
->all()
|
->all()
|
||||||
->each(function (Tenant $tenant) {
|
->each(function (Tenant $tenant) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue