Because Valet for Linux and Windows are unofficial, there will not be support outside of their respective Github repositories.
This command is useful if you want to serve a single site in a directory and not the entire directory.
cd ~/Projects/my-blog/
valet link awesome-blog
Valet will create a symbolic link in ~/.valet/Sites which points to your current working directory.
After running the link command, you can access the site in your browser at http://awesome-blog.dev.
To see a listing of all of your linked directories, run the valet links command. You may use valet unlink awesome-blog to destroy the symbolic link.
cd ~/Projects
valet park
This command will register your current working directory as a path that Valet should search for sites. Now, any Laravel project you create within your "parked" directory will automatically be served using the http://folder-name.dev convention.
This command will display all the registered Valet links you have created and their corresponding file paths on your computer.
Command:
valet links
Sample Output:
...
site1 -> /path/to/site/one
site2 -> /path/to/site/two
...
Note 1: You can run this command from anywhere not just from within a linked folder.
Note 2: Sites will be listed without the ending .dev but you'll still use site1.dev to access your application from the browser.
IMPORTANT!! Valet is a tool designed for macOS only.
Prerequisites
brew update in the terminal.Installation
brew install homebrew/php/php71.composer global require laravel/valet.~/.composer/vendor/bin directory to your system's "PATH" if it is not already there.valet install command.Post Install
During the installation process, Valet installed DnsMasq. It also registered Valet's daemon to automatically launch when your system starts, so you don't need to run valet start or valet install every time you reboot your machine.
This command allows you to change or view the TLD (top-level domain) used to bind domains to your local machine.
Get The Current TLD
$ valet domain
> dev
Set the TLD
$ valet domain local
> Your Valet domain has been updated to [local].
IMPORTANT!! Valet is a tool designed for macOS, the version below is ported for Linux OS.
Prerequisites
root or by using the sudo command.composer is required to install and run Valet.Installation
composer global require cpriego/valet-linux to install Valet globally.valet install command to finish the installation.Post Install
During the installation process, Valet installed DnsMasq. It also registered Valet's daemon to automatically launch when your system starts, so you don't need to run valet start or valet install every time you reboot your machine.
| Parameter | Values Set |
|---|---|
| command | domain, fetch-share-url, forget, help, install, link, links, list, logs, on-latest-version, open, park, paths, restart, secure, start, stop, uninstall, unlink, unsecure, which |
| options | -h, --help, -q, --quiet, -V, --version, --ansi, --no-ansi, -n, --no-interaction, -v, -vv, -vvv,--verbose |
| arguments | (optional) |