I came across this answer having experienced the same problem, however DNSmasq was not the problem for my Valet. I fixed the same symptoms by following the below steps.
Step 1
Uninstalled and reinstalled valet to v2
valet stop
valet uninstall
composer global require laravel/valet
- assuming this is how you installed it.
valet install
valet restart
This did not entirely fix the problem. But the browser then gives
secure connection could not be made
Which leads on to step 2.
Step 2
Having read this GitHub discussion on Google enforcing HTTPS on the .dev
domain name it turned out that simply running valet secure [name of app]
allowed it work again.
Alternatively, if you don't want to do this for lots of apps, or specifically want to run as HTTP, then running valet domain localhost
will update your Valet sites to use .localhost
instead. Localhost is a reserved word and therefore should not be subject to the same problem later on.