cURL + Laravel Valet + dnsmasq not working

前端 未结 5 1130
南笙
南笙 2020-12-15 08:11

when I execute a PHP script which runs a cURL request to a .test domain that is setup on my Mac with Laravel Valet/dnsmasq, I get this error printed :

5条回答
  •  醉梦人生
    2020-12-15 09:01

    I solved this by adding domain.test to /etc/hosts

    i.e., in the hosts file add: 127.0.0.1 domain.test

提交回复
热议问题