diff --git a/src/LaravelEconomicServiceProvider.php b/src/LaravelEconomicServiceProvider.php index ba3b5dd..b646902 100644 --- a/src/LaravelEconomicServiceProvider.php +++ b/src/LaravelEconomicServiceProvider.php @@ -58,7 +58,7 @@ public function packageBooted() fn (Response $response) => $logger->onResponse($response) ) ->throwIf(function (\Illuminate\Http\Client\Response $response) { - return $response->getStatusCode() !== 404; + return $response->status() !== 404; }); });