mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 22:14:03 +00:00
phpstan, global_cache, resolver improvements, InitializationHelpers trait
This commit is contained in:
parent
fd65cf1754
commit
87212e5390
35 changed files with 170 additions and 231 deletions
|
|
@ -11,12 +11,11 @@ class PreventAccessFromCentralDomains
|
|||
{
|
||||
/**
|
||||
* Set this property if you want to customize the on-fail behavior.
|
||||
*
|
||||
* @var callable|null
|
||||
*/
|
||||
public static $abortRequest;
|
||||
public static ?Closure $abortRequest;
|
||||
|
||||
public function handle(Request $request, Closure $next)
|
||||
/** @return \Illuminate\Http\Response|mixed */
|
||||
public function handle(Request $request, Closure $next): mixed
|
||||
{
|
||||
if (in_array($request->getHost(), config('tenancy.central_domains'))) {
|
||||
$abortRequest = static::$abortRequest ?? function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue