I’m currently working on a Laravel application, and I’ve encountered an issue with clearing the cache. I’ve attempted to use the artisan command php artisan cache:clear
, but it results in an error message stating "Failed to clear cache. Make sure you have the appropriate permissions."
Are there any alternative solutions or troubleshooting steps to successfully clear the cache in a Laravel application when the artisan command fails due to permission issues?
2
Answers
Just give a permission for storage and bootstrap folder using below command.
Then you run the
php artisan cache:clear
I have seen this solution on https://www.tutsmake.com/laravel-delete-cache-files-manually/, which is working in my case.
Run the following command on cmd or manually delete all cache files: