Laravel - No Permission to clear cache?
-
Hello. I am new to Laragon and so far I am very impressed. Just playing around with a few basic commands and stumbled on what looks to be a perm issue with a Laravel project.
When I do the common 'php artisan cache:clear' command I get 'Failed to clear cache. Make sure you have the appropriate permissions.'
Can anyone help?
-
@tinblue : Can you move Laragon to
D:\laragon
?
-
This post is deleted!
-
@leokhoa said in Laravel - No Permission to clear cache?:
@tinblue : Can you move Laragon to
D:\laragon
?Hi. I don't have a D drive but I do have an E drive. I uninstalled completely and re-installed on e:\laragon and I still got the same permission error.
However, I found this. https://github.com/laravel/framework/issues/25451
It seems this is a bug in Laravel 5.7 where it is not creating the /storage/framework/cache/data folder automatically on a fresh install of Laravel. Creating the data folder manually fixes the issue!
-
@tinblue Restart your PC and try again. Windows have a bad reputation when it comes to user permissions.
-
@bantya said in Laravel - No Permission to clear cache?:
@tinblue Restart your PC and try again. Windows have a bad reputation when it comes to user permissions.
As per my reply I said I had fixed it. It is a bug in Laravel 5.7 new installs and not a permissions issue.
-
@tinblue
Got it!