We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13bcd06 commit 4883c1aCopy full SHA for 4883c1a
bootstrap/app.php
@@ -7,7 +7,6 @@
7
use Illuminate\Foundation\Configuration\Middleware;
8
use Illuminate\Foundation\Http\Middleware\ValidateCsrfToken;
9
use Illuminate\Session\Middleware\StartSession;
10
-use Illuminate\Support\Str;
11
use Illuminate\Support\Facades\Log;
12
use Illuminate\View\Middleware\ShareErrorsFromSession;
13
@@ -34,7 +33,7 @@
34
33
Log::warning('HTTP Request Exception', [
35
'url' => (string) $e->getRequest()->getUri(),
36
'status' => $e->getResponse()->getStatusCode(),
37
- 'body' => Str::of((string) $e->getResponse()->getBody())->substr(0, 250)
+ 'body' => substr((string) $e->getResponse()->getBody(), 0, 250)
38
]);
39
})->stop();
40
})->create();
0 commit comments