I created a new Laravel project. When I go to the terminal to install the dependecies composer displays the following warning:
composer
Cannot create cache
I had the same problem today. Try it!
sudo chown -R [yourgroup] /home/[youruser]/.composer/cache/repo/https---packagist.org/ sudo chown -R [yourgroup] /home/[youruser]/.composer/cache/files/