mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
onFail accepts $request and $next
This commit is contained in:
parent
3d28923864
commit
eba282a0fe
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ When a tenant route is visited and the tenant can't be identified, an exception
|
||||||
// use Stancl\Tenancy\Middleware\InitializeTenancy;
|
// use Stancl\Tenancy\Middleware\InitializeTenancy;
|
||||||
|
|
||||||
$this->app->bind(InitializeTenancy::class, function ($app) {
|
$this->app->bind(InitializeTenancy::class, function ($app) {
|
||||||
return new InitializeTenancy(function ($exception) {
|
return new InitializeTenancy(function ($exception, $request, $next) {
|
||||||
// return redirect()->route('foo');
|
// return redirect()->route('foo');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue