I'm using guzzlehttp/guzzle and when i implement API on my login it gives this error. Please help me to resolve it. Thanks.
$response = Http::post('https://starznets.com/api/login.php', [
'dosubmit' => 1,
'user' => $request->email,
'password' => $request->password,
]);
Http
got added in Laravel
7.x
, i would guess you are not on a new version.
Alternatively you should include the facade when you use it.
use Illuminate\Support\Facades\Http;