bash <(curl -fsSL https://raw.githubusercontent.com/valet-sh/install/master/install.sh)
At the moment valet.sh on Apple m1 requires rosetta2:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
arch -x86_64 bash <(curl -fsSL https://raw.githubusercontent.com/valet-sh/install/master/install.sh)
bash <(curl -fsSL https://raw.githubusercontent.com/valet-sh/install/master/uninstall.sh)