in fresh installation of composer and you face " valet command not found " type this line and you will see the magic hahahha : test -d ~/.composer && bash ~/.composer/vendor/bin/valet install || bash ~/.config/composer/vendor/bin/valet install