src/Forge.php
public function setApiKey($apiKey, $guzzle)
    {
        $this->apiKey = $apiKey;
        
        $this->guzzle = $guzzle ?: new HttpClient([
            'base_uri' => 'https://forge.laravel.com/api/v1/',
            'http_errors' => false,
            'headers' => [
                'Authorization' => 'Bearer '.$this->apiKey,
                'Accept' => 'application/json',
                'Content-Type' => 'application/json'
            ]
        ]);
        
        return $this;
    }
public function setApiKey($apiKey, $guzzle)
    {
        $this->apiKey = $apiKey;
        
        $this->guzzle = $guzzle ?: new HttpClient([
            'base_uri' => 'https://forge.laravel.com/api/v1/',
            'http_errors' => false,
            'headers' => [
                'Authorization' => 'Bearer '.$this->apiKey,
                'Accept' => 'application/json',
                'Content-Type' => 'application/json'
            ]
        ]);
        
        return $this;
    }
public function setApiKey ( $ apiKey , $ guzzle ) { $ this -> apiKey = $ apiKey ; $ this -> guzzle = $ guzzle ? : new HttpClient ( [ 'base_uri' => 'https://forge.laravel.com/api/v1/' , 'http_errors' => false , 'headers' => [ 'Authorization' => 'Bearer ' . $ this -> apiKey , 'Accept' => 'application/json' , 'Content-Type' => 'application/json' ] ] ) ; return $ this ; }
Set the api key and setup the guzzle request object

@param string $apiKey
@return $this
Set the api key and setup the guzzle request object