Tenant routes 2.x

This commit is contained in:
Samuel Štancl 2019-09-22 17:27:51 +02:00
parent 3a131a3202
commit abbed1c095
2 changed files with 26 additions and 5 deletions

View file

@ -96,6 +96,10 @@ The aliases are used by the [event system]({{ $page->link('event-system') }})
Features are similar to bootstrappers, but they are executed regardless of whether tenancy has been initialized or not. Their purpose is to provide additional functionality that is not necessary for the package to work. Things like easy redirects to tenant domains, tags in Telescope, etc.
### `home_url` {#home-url}
When a user tries to visit a non-tenant route on a tenant domain, the `PreventAccessFromTenantDomains` middleware will return a redirect to this url.
### `migrate_after_creation` {#migrate-after-creation}
Run migrations after creating a tenant.