Laravel向我显示"用户'homestead'@'localhost(使用密码:是)"的访问被拒绝".一个解决方案是清除缓存和存储的配置缓存,所有这些都使用以下三个命令:
php artisan cache:clear
php artisan config:clear
php artisan config:cache
php artisan cache:clear
后,终端显示:
Failed to clear cache. Make sure you have the appropriate permissions.
(with red background)
Doing the second and third code (php artisan config:clear
and php artisan config:cache
) works fine! But it still gives me the error when typing the first line. Can anyone explain why?