如何解决BadMethodCallException with message ‘This cache store does not support tagging.’错误提示

如何解决BadMethodCallException with message ‘This cache store does not support tagging.’错误提示

要测试laravel torann/geoip扩展包,运行tinker测试,出现以下错误:

 

BadMethodCallException with message ‘This cache store does not support tagging.’

 

根据提示信息我们判断应该是cache的配置问题

把.env 里的 CACHE_DRIVER 改成

将代码:

CACHE_DRIVER=file

修改为:

CACHE_DRIVER=array

清理缓存

php artisan cache:clear

重新测试结果正常。

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容