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:
parent
dcc7a8a210
commit
59a3325f1d
8 changed files with 191 additions and 8 deletions
|
|
@ -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`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue