Mr.*_*. J 2 database caching laravel-5 entrust
在搜索了所有可能的答案后,我仍然不知道如何解决这个问题。我正在为 laravel使用zizaco/entrust包,每次我将数据保存到数据库中时,它都会返回一个错误:
Repository.php 第 294 行中的 BadMethodCallException:
此缓存存储不支持标记。
他们说,我只需要使用CACHE_DRIVER=array,其他人说use memcached or redis。我必须使用array吗?有人说这是解决问题的正确方法。或者我可以在cache不加标签的情况下使用吗?
TIA
In your .env file, change:
CACHE_DRIVER=file
Run Code Online (Sandbox Code Playgroud)
TO
CACHE_DRIVER=array
Run Code Online (Sandbox Code Playgroud)
After this change you might have to execute the following commands in the command line:
php artisan config:clear
php artisan config:cache
Run Code Online (Sandbox Code Playgroud)