Valet is an elegant way to create a local webserver for testing your Laravel applications on Mac.
Fortunately there is a fork allowing us to use Valet on a Linux based OS as well thanks to @cpriego.
Let's get started.
Laravel installation must be complete (see Setting Up A Laravel Local Dev Environment On Ubuntu
sudo apt-get install php7.3-curl sudo apt-get install jq sudo apt-get install xsel sudo apt-get install libnss3-tools
composer global require cpriego/valet-linux
test -d ~/.composer && bash ~/.composer/vendor/bin/valet install || bash ~/.config/composer/vendor/bin/valet install
Restart your terminal
cd into project root and run the following command
The web URL generated will be
laravel new blog cd blog valet park
will provide a working URL of
If you have a local Apache serve running you need to disable it or your Valet URLs will lead to the Apache welcome page.
sudo systemctl stop apache2 sudo systemctl disable apache2
To un-park a project
cd into the root and run
I'm Andrew, a full stack software developer from the deep south who makes internet things.
Hit me up on twitter @andrew_brooksie
Reach out if you have any questions or requests for future write-ups!