Laravel Valet : 502 Bad Gateway [SOLVED]

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 php@7.4

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.