public function getConfiguration(Request $request)
    {
        $this->request = $request;

        return [
            'base_uri' => $request->getOptions()->get('base_url'),
            'headers'  => $request->getHeaders()->all(),
            'query'    => $request->getParameters()->all()
        ];
    }
public function getConfiguration(Request $request)
    {
        $this->request = $request;

        return [
            'base_uri' => $request->getOptions()->get('base_url'),
            'headers'  => $request->getHeaders()->all(),
            'query'    => $request->getParameters()->all()
        ];
    }
public function getConfiguration ( Request $ request ) { $ this -> request = $ request ; return [ 'base_uri' => $ request -> getOptions ( ) -> get ( 'base_url' ) , 'headers' => $ request -> getHeaders ( ) -> all ( ) , 'query' => $ request -> getParameters ( ) -> all ( ) ] ; }
Format the request for Guzzle

@param  Request $request
@return array
Format the request for Guzzle