public function client()
    {
        if(empty($this->authToken)) {
            throw new NotFoundTokenException('Token not found');
        }
        //dd($this->microService);
        $this->client = new Client([
            'base_uri' => $this->microService,
            'timeout'  => $this->timeout,
            'headers'  => [
                'Auth-Token' => $this->authToken
            ]
        ]);
        return $this->client;
    }
public function client()
    {
        if(empty($this->authToken)) {
            throw new NotFoundTokenException('Token not found');
        }
        //dd($this->microService);
        $this->client = new Client([
            'base_uri' => $this->microService,
            'timeout'  => $this->timeout,
            'headers'  => [
                'Auth-Token' => $this->authToken
            ]
        ]);
        return $this->client;
    }
public function client ( ) { if ( empty ( $ this -> authToken ) ) { throw new NotFoundTokenException ( 'Token not found' ) ; } //dd($this->microService); $ this -> client = new Client ( [ 'base_uri' => $ this -> microService , 'timeout' => $ this -> timeout , 'headers' => [ 'Auth-Token' => $ this -> authToken ] ] ) ; return $ this -> client ; }
Method for initializer guzzle
@return Client
@throws NotFoundTokenException
Method for initializer guzzle