You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
I wanted to use GuzzleHttp in my project in my custom class but after installing it using composer require guzzlehttp/guzzle I get Class 'Illuminate\Support\Facades\Http' not found {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Class 'Illuminate\\Support\\Facades\\Http' not found in laravel.log
here is my custom class
`namespace App\MyModels\GetData;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class Test
{
public function __invoke()
{
Log::info("Cron executed : " );
$response = Http::get("https://google.com");
Log::info(print_r($response,true) );
}
}`
from stackoverflow I found although a guzzlehttp folder exists in vendor but there is no http.php file in \vendor\laravel\framework\src\Illuminate\Support\Facades
The text was updated successfully, but these errors were encountered:
from stackoverflow I found although a guzzlehttp folder exists in vendor but there is no http.php file in \vendor\laravel\framework\src\Illuminate\Support\Facades
This happens if you are using an old version of Laravel.
Hello.
I wanted to use GuzzleHttp in my project in my custom class but after installing it using
composer require guzzlehttp/guzzle
I getClass 'Illuminate\Support\Facades\Http' not found {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Class 'Illuminate\\Support\\Facades\\Http' not found
in laravel.loghere is my custom class
`namespace App\MyModels\GetData;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class Test
{
public function __invoke()
{
Log::info("Cron executed : " );
$response = Http::get("https://google.com");
Log::info(print_r($response,true) );
}
}`
from stackoverflow I found although a guzzlehttp folder exists in vendor but there is no http.php file in \vendor\laravel\framework\src\Illuminate\Support\Facades
The text was updated successfully, but these errors were encountered: