Laravel - HTTP Client - Authentication

You may specify basic and digest authentication credentials using the withBasicAuth and withDigestAuth methods, respectively:

    
    // Basic authentication...
    $response = Http::withBasicAuth('[email protected]', 'secret')->post(...);
    
    // Digest authentication...
    $response = Http::withDigestAuth('[email protected]', 'secret')->post(...);