When you use the Laravel HTTP client, you might have run into the issue that when something goes wrong, you don't get the full response body.

To get the full response body, you'll need to do something like this:

use Illuminate\Support\Facades\Http;
use Illuminate\Http\Client\RequestException;

try {
    $response = Http::post($url, $params)->throw();
} catch(RequestException $e) {
    dd($e->response->body());
}