如何解决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
重新测试结果正常。