Getting cURL error 3: <url> malformed (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) error after saving models in laravel 5.4
I made a mistake when instantiating the the Guzzle Client Object:
Rather than assigning my baseUrl to th 'base_uri' key as below,
$client = new Client([ 'base_uri' => $this->baseUrl ]);
I assigned the $baseUrl to the 'base_uri' key, which does not exist.
$client = new Client([ 'base_url' => $this->baseUrl ]);
Be careful when doing this. make sure you use 'base_uri' instead of 'base_url.
- Download download cacert.pem.
- Save the file "cacert.pem" to your computer. For example C:\PHP\cacert.pem
- Add the location of the "cacert.pem" file to your php.ini file.
Search for[curl.cainfo]
in your php.ini file and update the following line:curl.cainfo = "C:\PHP\cacert.pem"
- Restart your web server.
php artisan config:cachephp artisan cache:clear