Skip to content

Commit

Permalink
reverse middlewares order before prepend (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
bepsvpt authored Aug 18, 2020
1 parent 2f6ff33 commit 1ff82fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/TenancyServiceProvider.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ protected function makeTenancyMiddlewareHighestPriority()
Middleware\InitializeTenancyByRequestData::class,
];

foreach ($tenancyMiddleware as $middleware) {
foreach (array_reverse($tenancyMiddleware) as $middleware) {
$this->app[\Illuminate\Contracts\Http\Kernel::class]->prependToMiddlewarePriority($middleware);
}
}
Expand Down

0 comments on commit 1ff82fb

Please sign in to comment.