Grayscale profile picture

Patrique Ouimet

Senior Backend Software Engineer

Laravel Valet cURL Errors Between Sites

Apr 8, 2019

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