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() .