I try to make an API Request to the Github API just for testing. I installed the latest Guzzle Version ( \"guzzle/guzzle\": \"^3.9\" ) on my Laravel 5.1 APP.
In my routes
Why are you calling $client->get->()->send()
? In particular, why are you chaining the send() method at the end? The documentation does not append the send()
method when demonstrating what seems to be the same action:
http://guzzle.readthedocs.org/en/latest/quickstart.html#creating-a-client
Also, did you consider the implications of this statement on the above-cited manual page?
When a relative URI is provided to a client, the client will combine the base URI with the relative URI using the rules described in RFC 3986, section 2.