When you upgrade or downgrade PHP Version of Laravel Valet it creates this issue of getting
502 Bad Gateway
Error while accessing any parked
.test
domain.
Simple way to solve this by updating composer first.
composer global update
Once done reinstall Valet again. It takes very less time.
valet install
Run this command to make sure that you use correct version of
php
valet use [email protected]
Next Best Web Framework: Benchmark Comparison for Golang Fiber, Node.js Express, Laravel, Lumen, and Django
ganesh
September 3, 2023