Problem: When hit the following command got

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

message in the command line.

php artisan cache:clear
php artisan config:clear
php artisan config:cache

Solution:

If the data directory doesn’t exist under (storage/framework/cache/data), then you will have this error.

This data directory doesn’t exist by default on a fresh/new installation.

Creating the data directory manually at (storage/framework/cache) should fix this issue

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here