mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
2.0.0 installation
This commit is contained in:
parent
70f26f9d48
commit
6add596ce8
1 changed files with 11 additions and 0 deletions
|
|
@ -45,6 +45,17 @@ protected $middlewarePriority = [
|
||||||
];
|
];
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Add the `\Stancl\Tenancy\Middleware\PreventAccessFromTenantDomains::class` middleware to all route groups you use, so that's probably `'web'` and possibly `'api'`:
|
||||||
|
```php
|
||||||
|
protected $middlewareGroups = [
|
||||||
|
'web' => [
|
||||||
|
\Stancl\Tenancy\Middleware\PreventAccessFromTenantDomains::class,
|
||||||
|
// ...
|
||||||
|
],
|
||||||
|
// ...
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
#### Creating routes
|
#### Creating routes
|
||||||
|
|
||||||
The package lets you have tenant routes and "exempt" routes. Tenant routes are your application's routes. Exempt routes are routes exempt from tenancy — landing pages, sign up forms, and routes for managing tenants.
|
The package lets you have tenant routes and "exempt" routes. Tenant routes are your application's routes. Exempt routes are routes exempt from tenancy — landing pages, sign up forms, and routes for managing tenants.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue