What version of php have you installed?
Try running laravel use [email protected] exchange the xto your version of php.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
The question title says it all. Things that I tried:
Uninstalled laravel/valet composer package globally and reinstalled it. Reinstalled valet. No luck.
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?
Actually I had the same issue before. Here were my tricks to address the issue.
Open this file- /usr/local/etc/dnsmasq.conf
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
Please or to participate in this conversation.