Periodically, I’ll be trying to load a development using Valet and I’ll end up getting 502 Bad Gateway error.
Whenever I’m faced with this problem, here are the following steps I do to restore functionality (without breaking any of my existing links or certificates):
$ composer global update
$ valet install
$ valet restart
The last step isn’t always necessary but I’ve found there are times where I’ve had to use it.
For reference, check out the past articles related to the above content: