Skip to content

Script to reinstall Laravel Valet and everything that comes with it.

License

Notifications You must be signed in to change notification settings

doefom/laravel_valet_reinstall_mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Laravel Valet Reinstall Script (macOS)

Reinstall Laravel Valet with one single script. This is especially usefull if you for example stream from time to time and want to use Valet with multiple users on your Mac (one for private projects, one for streaming projects).

To use Valet with the current user just run this script and you're done. You may either download the file valet_reinstall.sh and run it or just copy the contents of the script and run those step by step.

Important note

You need to have homebrew and composer installed for this script to work.

The script

echo "Chown homebrew directory for current user"
sudo chown -R "$(whoami)" /opt/homebrew

echo "Uninstall Laravel Valet"
composer global remove laravel/valet

echo "Uninstall dnsmasq"
brew uninstall dnsmasq

echo "Remove Laravel Valet config at default location"
sudo rm -r ~/.config/valet

echo "Remove Laravel Valet composer binary"
rm -r "$(which valet)"

echo "Install Laravel Valet"
composer global require laravel/valet
valet install

Next steps

After successfully installing Laravel Valet, you can follow the official Documentation for more information.

About

Script to reinstall Laravel Valet and everything that comes with it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages