Valet+ is a fork of laravel/valet. It supports automatic virtual host configuration based on the folder structure.
This is a modified version of the official Installation Guide.
You should have a look at our overview before proceeding with this guide. Also, your system should be running brew and composer already.
Run composer remove laravel/valet
.
- Update Homebrew via
brew update
- Add the Homebrew PHP tap for Valet+ via
brew tap henkrehorst/php
- Install PHP 7.4 using Homebrew via
brew install [email protected]
- Link your PHP version using the
brew link [email protected] --force
command
-
If needed, install composer via
brew install composer
-
Install Valet+ via
composer global require weprovide/valet-plus
-
Make sure
~/.composer/vendor/bin
is in your path by addingexport PATH="$PATH:$HOME/.composer/vendor/bin"
to yourbash_profile
or.zshrc
-
Check for the following, common problem with
valet fix
. Warning: This will uninstall all other PHP installations -
Run the
valet install
command. Optionally add--with-mariadb
to use MariaDB instead of MySQL. This will configure and install Valet+ and DnsMasq.Additionally, it registers Valet's daemon to launch when your system starts.
- Create a new empty folder for example
~/sites
- Clone the development template like you normally would (dev + platform) into this folder
- Run
./psh.phar install
- Move to
~/sites
and runvalet park
to register valet for this directory. Shopware should now be accessible via thefolder-name.test
. Notice: "folder-name" is the name of the Shopware development template in~/sites
- Optional: Disable SSL via
valet unsecure
because this might cause problems with the watcher
- Make sure
ping something.test
responds from 127.0.0.1. - Run
nginx -t
orsudo nginx -t
and check for any errors.- If there is a missing elastisearch file, follow "Missing Elasticsearch stub fix" further below
This is due to valet fix
uninstalling [email protected]
for some reason. You can fix it by reinstalling Valet-PHP (Step 3 + 4 of "Installing Valet-PHP"). Make sure to NOT run valet fix
afterwards and just proceed with valet install
.
sudo cp ~/.composer/vendor/weprovide/valet-plus/cli/stubs/elasticsearch.conf /usr/local/etc/nginx/valet/elasticsearch.conf
valet domain test
Try disabing SSL via valet unsecure
.
Now, that you've got a running Shopware 6 instance, you could try to create your first plugin. Head over to our plugin base guide for more information.