failed to clear cache. make sure you have the appropriate permissions.

Posted by w3diy - 5 months ago

How to fix Laravel artisan command Failed to clear cache?

first of all Make sure you have the appropriate permissions.

php artisan config:clear
But we got the error

Failed to clear cache. Make sure you have the appropriate permissions.

we nothing can help me :( The next thing was first checking the files, as well as remove/delete these ones

rm /bootstrap/cache/packages.php
rm /bootstrap/cache/services.php
rm /bootstrap/cache/config.php.php

and last you can run this follwing this commands

php artisan cache:clear