Skip to content

Instantly share code, notes, and snippets.

@paulredmond
Created April 7, 2017 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulredmond/6f80fe5aa0fcbc1b3ef83272bea8445d to your computer and use it in GitHub Desktop.
Save paulredmond/6f80fe5aa0fcbc1b3ef83272bea8445d to your computer and use it in GitHub Desktop.
Artisan Tinker Example Output
>>> $client = app('example.client');
=> GuzzleHttp\Client {#666}
>>> json_decode($client->get('http://guzzle-6-demo.app/example')->getBody()->__toString(), true);
=> [
"authorization" => [
"Signature keyId="key",algorithm="hmac-sha1",signature="HjQHCSOYw9PA4NKK70Y0GX7es3c%3D"",
],
"date" => [
"Fri, 07 Apr 2017 05:58:28 UTC",
],
"user-agent" => [
"GuzzleHttp/6.2.1 curl/7.51.0 PHP/7.1.2",
],
"host" => [
"guzzle-6-demo.app",
],
"content-length" => [
"",
],
"content-type" => [
"",
],
]
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment