link to static properties

This commit is contained in:
Samuel Stancl 2020-07-26 21:57:12 +02:00 committed by GitHub
parent 16af6038be
commit 2e5ea95b63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {