Laravel showing “Failed to clear cache. Make sure you have the appropriate permissions”

后端 未结 12 2272
逝去的感伤
逝去的感伤 2020-12-10 00:58

Laravel was displaying to me \"Access denied for user \'homestead\'@\'localhost\' (using password: YES)\". One solution for this was clearing the cache and the config cache

12条回答
  •  感情败类
    2020-12-10 01:07

    First try:

    Check if there is a "data" folder inside "storage/framework/cache/". If there is not, then create it manually. (create a new folder with name "data")

    Option 2:

    If there is a "data" folder inside "storage/framework/cache/". Remove ALL existing folders inside there.

    Then final, running this:

    php artisan cache:clear
    

    This should fix this issue: "Failed to clear cache. Make sure you have the appropriate permissions."

提交回复
热议问题