Merge branch 'master' of github.com:stancl/tenancy-docs

This commit is contained in:
Samuel Štancl 2020-06-21 15:37:52 +02:00
commit c4af0901c0
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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) {