Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

InfoO2's avatar

Error with Illuminate\Support\Facades\Http::get

I am using //github.com/doerffler/flysystem-onedrive , but I get the error

"Call to undefined method Illuminate\Support\Facades\Http::get()"

I tried to recreate using the same code, but I still get the same error, I did look into the code from

//laravel.com/api/10.x/Illuminate/Support/Facades/Http.html#method_put

But it state that the function existed, but when I look into

//github.com/laravel/framework/blob/10.x/src/Illuminate/Support/Facades/Http.php

I found nothing, can someone help me with this error? How can I write it?

		$http = new Http();
        $response = $http->put(
            $upload_url,
            [
                'headers' => $headers,
                'body' => $chunk,
                'timeout' => $this->options['request_timeout'],
            ]
        );

0 likes
0 replies

Please or to participate in this conversation.