shouldBeSkipped(tenancy()->getRoute($request))) { // Allow accessing central route in kernel identification return $next($request); } return $this->initializeTenancy( $request, $next, $request->getHost() ); } /** * Domain identification request has a tenant if it's * not hitting a domain specifically defined as central in the config. */ public function requestHasTenant(Request $request): bool { return ! in_array($request->host(), config('tenancy.central_domains')); } }