onFail accepts $request and $next

This commit is contained in:
Samuel Štancl 2020-04-06 15:16:39 +02:00 committed by GitHub
parent 3d28923864
commit eba282a0fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');
});
});