php - Why can't I use GuzzleHttp in laravel controller? -


keep getting following error:

object of class illuminate\routing\route not converted string

 $response = $client.post('url', [                 'body' => [                    'blah' => 'blah'                 ],                 'headers' => [                     // client id+client secret (base64)                     'authorization' => 'basic sllalalalal='                 ]             ]); 

i'm not using route object anywhere, hardcoded strings in array. line error happens semicolon is.

change $client.post $client->post. trying concat $client , post().


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -