Laravel cache repository does not support tagging

I am getting this error since I installed Zizaco \ Entrust on my authentication routes.

BadMethodCallException: This cache store does not support tagging. 

I had few known problems, and I had to change some configuration parameters, and for this very reason I get this error.

What is the reason for this error, so that I can find the problem and fix it, and not find the code that I changed?

thanks

+18
source share
6 answers

Cache tags are not supported when using file or database cache drivers. The Entrust package probably uses them somewhere. You should be fine if you change it to an array , memcache or apc .

https://laravel.com/docs/5.2/cache#cache-tags

+21
source

The Laravel file and database driver does not support tags.

What is needed for the update to fix this problem, just change the cache driver from the file to the array in your .env (located in the root folder), as shown below.

CACHE_DRIVER = array

Hope this helps!

+15
source

open the .env file and change

  CACHE_DRIVER=file to CACHE_DRIVER=array 

Or add this line shown below

  CACHE_DRIVER=array 

After that, go to the command line or open a terminal and enter

  php artisan config:cache 
+10
source

Use this command on the command line

 php artisan config:cache 
+5
source

Cache tags are not supported when using file or database cache drivers. The Entrust package probably uses them somewhere.

Open .env files .env

  CACHE_DRIVER = array SESSION_DRIVER = file 

then run the command in terminal

 php artisan config:cache 
+1
source

If the problem persists, change the version for trust to.

 dev-laravel-5 
0
source

All Articles