Laravel Valet Environment Variables

To set/override Environment Variables in Laravel Valet, one had to manually edit the Nginx config files and restart Nginx after doing so. With the release of Laravel Valet 2.1.6 this is no longer needed: Valet 2.1.6 contains a merged PR that provides built-in support for an specific file named .valet-env.php in which you can set […]

Fixing the valet share 301 Redirect Loop

One of the nice things of Laravel Valet is that it includes an easy way to make your local site available publicly. For this it has the aforementioned Ngrok built-in. To use it, just run the valet share command, and your local site will be shared through a *.ngrok.io subdomain. However, when combining valet share […]

Missing ~/.valet folder?

Earlier today I updated my Valet installation from version 2.0.x to 2.1.1. To my surprise the ~/.valet/ folder had gone missing, immediately making me think the update process somehow had gone wrong (even though Valet kept on serving sites). Turns out that the ~/.valet/ folder got moved to ~/.config/valet/ with the release of Valet 2.1.0. […]

Switching PHP versions with Laravel Valet

⚠ī¸ Switching to a PHP version lower van 7.1 with Valet 2.0 won’t work at the time of writing, as Valet 2.0 does not work with PHP < 7.1 until this issue is resolved. ℹī¸ UPDATE 2018.10.23: Freek has developed some handy aliases to easily switch PHP versions. For some older projects that I still […]