1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 17:34:03 +00:00

[1.8.0][WIP] Update docs (#105)

* Add jobs & horizon pages

* Apply fixes from StyleCI

* Telescope integration

* Integrations page

* Apply fixes from StyleCI

* Add testing section

* Conflicting routes

* Misc tips

* Apply fixes from StyleCI
This commit is contained in:
Samuel Štancl 2019-08-23 22:43:02 +02:00 committed by GitHub
parent dcc7a8a210
commit 59a3325f1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 191 additions and 8 deletions

View file

@ -25,4 +25,10 @@ use Stancl\Tenancy\Middleware\InitializeTenancy;
Route::middleware(InitializeTenancy::class)->group(function () {
// Route::get('/', 'HelloWorld');
});
```
```
## Using the same routes for tenant and non-tenant parts of the application {#using-the-same-routes-for-tenant-and-non-tenant-parts-of-the-application}
The `Stancl\Tenancy\Middleware\PreventAccessFromTenantDomains` middleware makes sure 404 is returned when a user attempts to visit a web route on a tenant (non-exempt) domain.
The install command applies this middleware to the `web` group. If you want to do this for another route group, add this middleware manually to that group. You can do this in `app/Http/Kernel.php`.