From eba282a0fe3167c4c57d700a505c317d26c3dde9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 6 Apr 2020 15:16:39 +0200 Subject: [PATCH] onFail accepts $request and $next --- docs/source/v2/middleware-configuration.blade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/v2/middleware-configuration.blade.md b/docs/source/v2/middleware-configuration.blade.md index 2f810ea..7320a11 100644 --- a/docs/source/v2/middleware-configuration.blade.md +++ b/docs/source/v2/middleware-configuration.blade.md @@ -39,7 +39,7 @@ When a tenant route is visited and the tenant can't be identified, an exception // use Stancl\Tenancy\Middleware\InitializeTenancy; $this->app->bind(InitializeTenancy::class, function ($app) { - return new InitializeTenancy(function ($exception) { + return new InitializeTenancy(function ($exception, $request, $next) { // return redirect()->route('foo'); }); });