I upgraded my MacBook to macOS Sierra 10.12.6 and wanted to install Laravel Valet because of easy development site environment setup (you just create a folder and magic!). I used Valet before but was asked by IT Security Office why I was running a rouge DNS. I wasn’t sure what they meant but after some digging I assumed it must be Valet which uses DnsMasq to proxy all requests on the
*.dev domain to point to sites installed on your local machine. So I installed Valet and denied incoming network connections to DnsMasq in hopes this wouldn’t throw a red flag to the network admins.
Well after many attempts to install Valet on macOS Sierra and the associated PHP7.0 and Nginx servers with HomeBrew, I was unsuccessful. There is a command
valet secure <directory> that gives an SSL cert to the domain so you can use https://<directory>.dev but I couldn’t get that to load. I gave up on Valet which would probably get flagged anyways by the security office.
Now onto Homestead.
- Installed VirtualBox and Vagrant onto my Macbook.
- Added the
Homestead.yamlto sync my local folder to the VM folder
- Added the <directory>.dev URL to
- Ran vagrant up
Valet is obviously much quicker to setup a new site, because I don’t have to edit
Homestead.yaml or edit
/etc/hosts file and all I have to do to add an SSL to the site is run
valet secure <directory> … Sigh… I may revisit this if it becomes annoying enough down the road. Here is a quick comparison of the two as far as software: