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

后端 未结 12 2274
逝去的感伤
逝去的感伤 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:03

    I ran my project in a docker container, then later tried accessing it via laragon, I had similar issue, this was due to compiled configurations in /bootstrap/cache/config.php.

    I fixed fit by running php artisan config:clear, this deletes the /bootstrap/cache/config.php file automatically.

提交回复
热议问题