start('SSR'); $response = Http::withHeaders([ 'Accept-encoding' => 'gzip', ]) ->post($serverUrl, [ 'bootstrapData' => $bootstrapData, 'url' => request()->getRequestUri(), ]) ->throw() ->body(); app(ServerTiming::class)->stop('SSR'); } catch (Exception $e) { return null; } if (is_null($response)) { return null; } return $response; } }