Follow the below commands for valet linux installation
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install software-properties-common
sudo apt-get update
sudo apt-get -y install unzip zip nginx php7.2 php7.2-mysql php7.2-fpm php7.2-mbstring php7.2-xml php7.2-curl php*-json php*-cli php*-common php*-mcrypt php*-xml php*-zip
sudo apt-get install libnss3-tools jq xsel
sudo apt-get install composer
sudo update-alternatives --set php /usr/bin/php7.2
composer global require cpriego/valet-linux
Before the next step please check first in the .config folder whether the vendor is in the composer folder or not, if not yet please cut the vendor folder to .config / composer
sudo apt-get install dnsmasq
sudo service nginx start
sudo service nginx status
check if nginx is running, then if it's already running please exit with below command
sudo service nginx stop
echo "export PATH=$PATH:$HOME/.config/composer/vendor/bin" >> ~/.bashrc source ~/.bashrc
If the above command does not works then try the below one
echo "export PATH=$PATH:$HOME/.config/composer/vendor/bin" >> /.bashrc source /.bashrc
valet install
mkdir ~/Sites
cd ~/Sites
valet park
This command will register your current working directory as a path that Valet should search for sites
Add/Create Project in this ~/Sites directory
Access your project using its folder name for example http://directory-name.test
valet secure folder-name
valet unsecure folder-name
valet domain
valet domain .domainName
composer global remove cpriego/valet-linux