Created
April 7, 2017 06:07
-
-
Save paulredmond/6f80fe5aa0fcbc1b3ef83272bea8445d to your computer and use it in GitHub Desktop.
Artisan Tinker Example Output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> $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