mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
Make snippet syntactically correct
This commit is contained in:
parent
e1c4dc8934
commit
4c7e6c0e06
1 changed files with 2 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ Open `app/Http/Kernel.php` and make the middleware top priority, so that it gets
|
||||||
```php
|
```php
|
||||||
protected $middlewarePriority = [
|
protected $middlewarePriority = [
|
||||||
\Stancl\Tenancy\Middleware\InitializeTenancy::class,
|
\Stancl\Tenancy\Middleware\InitializeTenancy::class,
|
||||||
|
// ...
|
||||||
|
];
|
||||||
```
|
```
|
||||||
|
|
||||||
When a tenant route is visited, but the tenant can't be identified, an exception is thrown. If you want to change this behavior, to a redirect for example, add this to your `app/Providers/AppServiceProvider.php`'s `boot()` method.
|
When a tenant route is visited, but the tenant can't be identified, an exception is thrown. If you want to change this behavior, to a redirect for example, add this to your `app/Providers/AppServiceProvider.php`'s `boot()` method.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue