)
I have issue with Laravel 5.2 and Guzzle 6.3
This is my code for sending POST to URL
$client = new Client();
$result = $client->post('https://marketing.webbera.co.uk/form/2', [
'form_params' => [
'mauticform_label_welcomeemailwebbera_email' => 'test@test.com',
'mauticform_label_welcomeemailwebbera_ime' =>'Secret'
]
]);
$result = $client->send($result);
And this is error that I have
Argument 1 passed to GuzzleHttp\Client::send() must implement interface Psr\Http\Message\RequestInterface, instance of GuzzleHttp\Psr7\Response given, called in /app/Http/Controllers/Registration.php on line 63 and defined
This is line 63 $result = $client->send($result);
I don't have clue what can be wrong so any hint is welcome ;)