We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
$exceptions->dontTruncateRequestExceptions();
$exceptions->truncateRequestExceptionsAt(260);
// Output: Full or truncated HTTP response in exceptions
By default, RequestException
messages are truncated to 120 characters when logged or reported. To customize or disable this behavior, you may utilize the truncateRequestExceptionsAt
and dontTruncateRequestExceptions
methods when configuring your application's exception handling behavior in your bootstrap/app.php
file:
// bootstrap/app.php
use Illuminate\Http\Client\RequestException;
return Application::configure(basePath: dirname(__DIR__))
->withExceptions(function (Exceptions $exceptions) {
// Disable truncation completely
$exceptions->dontTruncateRequestExceptions();
// Or set custom length
$exceptions->truncateRequestExceptionsAt(260);
})->create();
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.