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

  31326 views   2 years ago Laravel


Hello Laravel artisan.

this is a very small article today's i will share with you. you many times face issue this issue "Failed to clear cache. Make sure you have the appropriate permissions" when you try to run the following artisan command in your terminal.

php artisan cach:clear

you can resolve this issue following two ways.

Method : 1

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.

Method : 2

in my case, this solution was worked fine.

first run the following artisan command.

php artisan config:clear

then the run 

php artisan cach:clear

i hope it's work for you.

Author : Harsukh Makwana
Harsukh Makwana

Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]