Last Updated: July 09, 2017
·
240
· webfacer

Getting Laravel Valet - Not Found error

To solve the isse with:
Warning: filegetcontents(/var/root/.valet/config.json): failed to open stream: Permission denied in /Users/Username/.composer/vendor/laravel/valet/server.php on line 23
Warning: Invalid argument supplied for foreach() in /Users/Username/.composer/vendor/laravel/valet/server.php on line 47
404 - Not Found

you have to change composer user and group:
cd ~/.composer/
sudo chown -R $(whoami) vendor