-
Notifications
You must be signed in to change notification settings - Fork 211
Installation
❗ Please check the issue queue for existing bugs if Valet+ is not working correctly after install. Valet+ uses many dependencies and can break as these dependencies develop.
❗ If you're encountering bugs related to linking binaries. Please check all known linking errors.
⚠️ Valet+ requires macOS and Homebrew. Before installation, you should make sure that no other programs such as Apache or Nginx are binding to your local machine's port 80.
- Install or update Homebrew to the latest version using
brew update
. - Add the Homebrew PHP tap for Valet+ via
brew tap henkrehorst/php
. - Install PHP 7.2 using Homebrew via
brew install [email protected]
. - Link your PHP version using the
brew link [email protected] --force
command.
⚠️ Sometimes you need to restart all terminal windows for the link to take effect after install. Especially if you just installed a homebrew PHP version for the first time.
- Install Composer using Homebrew via
brew install composer
. - Install Valet+ with Composer via
composer global require weprovide/valet-plus
. - Add
export PATH="$PATH:$HOME/.composer/vendor/bin"
to.bash_profile
(for bash) or.zshrc
(for zsh) depending on your shell (echo $SHELL
) - Run the
valet fix
command. This will check for common issues preventing Valet+ from installing. - Run the
valet install
command. Optionally add--with-mariadb
to use MariaDB instead of MySQL This will configure and install Valet+ and DnsMasq, and register Valet's daemon to launch when your system starts. - Once Valet+ is installed, try pinging any
*.test
domain on your terminal using a command such asping -c1 foobar.test
. If Valet+ is installed correctly you should see this domain responding on127.0.0.1
. If not you might have to restart your system. Especially when coming from the Dinghy (docker) solution.
ℹ️ Valet+ will automatically start its daemon each time your machine boots. There is no need to run
valet start
orvalet install
ever again once the initial Valet+ installation is complete.
To install valet-plus after having installed Laravel valet. Please follow the following steps.
- Remove the valet package
composer remove laravel/valet
. - Follow the installation instructions.