Do you really need both? Maybe backup first and just try the newest one.
Aug 17, 2024
4
Level 3
How to install two versions of guzzleHttp?
I have an old version that was installed with composer and is inside vendor/guzzlehttp , and I downloaded the latest version and saved it in the guzzlehttpNew folder. However, when I try to use it like this:
use guzzleHttpNew\Client;
$client = new Client();
$response = $client->request('POST', 'https://www.site.com.br/upload-image-blog', [
'multipart' => [
[
'name' => 'image',
'contents' => $request->file('thumbnail'),
'filename' => $imageName,
'_token' => csrf_token()
],
],
]);
I get this error:
"message": "Class \"guzzleNewNew\Client\" not found",
What else do I need to do to be able to use both versions at the same time?
Please or to participate in this conversation.