please I am storing the BASE URL for an endpoint in my .env file and calling this endpoint in my controller. When I do this:
$request = $client->get(env('URI').'/positions');
I get this error - cURL error 3: malformed
But when I do this -
$url = env('URI');
$request = $client->get($url.'/positions');
It works. What might be the problem here?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire