mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
link to static properties
This commit is contained in:
parent
16af6038be
commit
2e5ea95b63
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ See the [manual initialization page]({{ $page->link('manual-initialization') }})
|
||||||
|
|
||||||
## Customizing onFail logic {#customizing-onfail-logic}
|
## Customizing onFail logic {#customizing-onfail-logic}
|
||||||
|
|
||||||
Each identification middleware has a static `$onFail` property that can be used to customize the behavior that should happen when a tenant couldn't be identified.
|
Each identification middleware has a [static `$onFail` property]({{ $page->link('configuration/#static-properties') }}) that can be used to customize the behavior that should happen when a tenant couldn't be identified.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
\Stancl\Tenancy\Middleware\InitializeTenancyByDomain::$onFail = function ($exception, $request, $next) {
|
\Stancl\Tenancy\Middleware\InitializeTenancyByDomain::$onFail = function ($exception, $request, $next) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue