I decided to automate the install of Laravel Valet and check and make sure that programs are not running that would prevent it from running. For example it will check for other running web server software such as XAMP, MAMP, Local by Flywheel, and Desktop Server and warn the user so they can remove it. It is an opinionated install so fee free to change it.
NOTE: You will want to have backed up both the database and WordPress files before you run this software. I am not responsible for any lost data.
I have included a script valet-list, to use to first check and see if any web server software is running. If it is, run valet-destroy. If valet-destroy comes up clean, you can run valet-install. Please note it just lists if non-valet web server is running, it does not remove all of the software.
You will need to create a bin directory off of you home directory, add the files, and set the permission
cut, paste into terminal, and run
You will now want to copy the code from these gists place it in the corresponding files by using the text editor of your choice.
Note: You may be asked to enter your password twice…