mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:24:03 +00:00
update comment about middleware order
This commit is contained in:
parent
ccaba05272
commit
6ee93d0441
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ class TenancyServiceProvider extends ServiceProvider
|
||||||
|
|
||||||
protected function makeTenancyMiddlewareHighestPriority()
|
protected function makeTenancyMiddlewareHighestPriority()
|
||||||
{
|
{
|
||||||
// Even higher priority than the initialization middleware
|
// PreventAccessFromCentralDomains has even higher priority than the identification middleware
|
||||||
$tenancyMiddleware = array_merge([Middleware\PreventAccessFromCentralDomains::class], config('tenancy.identification.middleware'));
|
$tenancyMiddleware = array_merge([Middleware\PreventAccessFromCentralDomains::class], config('tenancy.identification.middleware'));
|
||||||
|
|
||||||
foreach (array_reverse($tenancyMiddleware) as $middleware) {
|
foreach (array_reverse($tenancyMiddleware) as $middleware) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue