Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AyobamilayeY's avatar

Laravel valet host issue

The question title says it all. Things that I tried:

  1. Uninstalled laravel/valet composer package globally and reinstalled it. Reinstalled valet. No luck.

  2. Deleted the ~/.config/valet/dnsmasq.conf file and ran valet tld test to reset all settings. Didn't work.

Output of brew services list:

dnsmasq   started root   /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
[email protected] started root   /Library/LaunchDaemons/[email protected]
nginx     started root   /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php       started root   /Library/LaunchDaemons/homebrew.mxcl.php.plist
redis     started tanmay /Users/tanmay/Library/LaunchAgents/homebrew.mxcl.redis.plist

Someone on SO also had same issue, unfortunately, he did not specify where did he make the changes.

What can I do now?

0 likes
3 replies
Tray2's avatar

What version of php have you installed?

Try running laravel use [email protected] exchange the xto your version of php.

1 like
tisuchi's avatar
tisuchi
Best Answer
Level 70

@ayobamilayey

Actually I had the same issue before. Here were my tricks to address the issue.

  1. Open this file- /usr/local/etc/dnsmasq.conf

  2. Search these lines-

conf-file=/Users/OLD_USER_NAME/.config/valet/dnsmasq.conf

conf-file=/Users/NEW_USER_NAME/.config/valet/dnsmasq.conf

Comment out the first line.

The ultimate outcome will be like this-

# conf-file=/Users/OLD_USER_NAME/.config/valet/dnsmasq.conf

conf-file=/Users/NEW_USER_NAME/.config/valet/dnsmasq.conf
3 likes

Please or to participate in this conversation.