Grayscale profile picture

Patrique Ouimet

Developer

COVID-19 Stats

Laravel Valet cURL Errors Between Sites

Mon, Apr 8, 2019 2:07 PM

Laravel Valet cURL Error

If you're experiencing curl errors when using Laravel Valet and trying to communicate between sites

cURL error 6: Could not resolve: my-project.test (Domain name not found)

The fix is simply to add that domain to your /etc/hosts

127.0.0.1 my-project.test

NOTE: For local development I've turned off SSL verification with an environment variable for Guzzle http://docs.guzzlephp.org/en/stable/request-options.html#verify